Files
outline/app/scenes/ErrorSuspended.tsx
Tom Moor 15b1069bcc chore: Move to Typescript (#2783)
This PR moves the entire project to Typescript. Due to the ~1000 ignores this will lead to a messy codebase for a while, but the churn is worth it – all of those ignore comments are places that were never type-safe previously.

closes #1282
2021-11-29 06:40:55 -08:00

38 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { observer } from "mobx-react";
import * as React from "react";
import { useTranslation, Trans } from "react-i18next";
import CenteredContent from "~/components/CenteredContent";
import PageTitle from "~/components/PageTitle";
import useStores from "~/hooks/useStores";
const ErrorSuspended = () => {
const { t } = useTranslation();
const { auth } = useStores();
return (
<CenteredContent>
<PageTitle title={t("Your account has been suspended")} />
<h1>
<span role="img" aria-label="Warning sign">
</span>{" "}
{t("Your account has been suspended")}
</h1>
<p>
<Trans
defaults="A team admin (<em>{{ suspendedContactEmail }}</em>) has suspended your account. To re-activate your account, please reach out to them directly."
values={{
suspendedContactEmail: auth.suspendedContactEmail,
}}
components={{
em: <strong />,
}}
/>
</p>
</CenteredContent>
);
};
export default observer(ErrorSuspended);