HelpText -> Text

This commit is contained in:
Tom Moor
2022-02-17 20:59:40 -08:00
parent 4efdbf7253
commit d5763233ca
50 changed files with 198 additions and 165 deletions

View File

@@ -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 youd 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("Im sure Delete")}