HelpText -> Text
This commit is contained in:
@@ -5,7 +5,7 @@ import { useHistory } from "react-router-dom";
|
||||
import Document from "~/models/Document";
|
||||
import Button from "~/components/Button";
|
||||
import Flex from "~/components/Flex";
|
||||
import HelpText from "~/components/HelpText";
|
||||
import Text from "~/components/Text";
|
||||
import useStores from "~/hooks/useStores";
|
||||
import useToasts from "~/hooks/useToasts";
|
||||
import { collectionUrl, documentUrl } from "~/utils/routeHelpers";
|
||||
@@ -83,7 +83,7 @@ function DocumentDelete({ document, onSubmit }: Props) {
|
||||
return (
|
||||
<Flex column>
|
||||
<form onSubmit={handleSubmit}>
|
||||
<HelpText>
|
||||
<Text type="secondary">
|
||||
{document.isTemplate ? (
|
||||
<Trans
|
||||
defaults="Are you sure you want to delete the <em>{{ documentTitle }}</em> template?"
|
||||
@@ -105,9 +105,9 @@ function DocumentDelete({ document, onSubmit }: Props) {
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</HelpText>
|
||||
</Text>
|
||||
{canArchive && (
|
||||
<HelpText>
|
||||
<Text type="secondary">
|
||||
<Trans>
|
||||
If you’d like the option of referencing or restoring the{" "}
|
||||
{{
|
||||
@@ -115,7 +115,7 @@ function DocumentDelete({ document, onSubmit }: Props) {
|
||||
}}{" "}
|
||||
in the future, consider archiving it instead.
|
||||
</Trans>
|
||||
</HelpText>
|
||||
</Text>
|
||||
)}
|
||||
<Button type="submit" danger>
|
||||
{isDeleting ? `${t("Deleting")}…` : t("I’m sure – Delete")}
|
||||
|
||||
Reference in New Issue
Block a user