This commit is contained in:
Manav Rathi
2025-01-10 14:53:51 +05:30
parent 705a93e6d6
commit c322bc7b04
2 changed files with 8 additions and 18 deletions

View File

@@ -1,13 +1,6 @@
import { CenteredFill } from "@/base/components/containers";
import { AppNavbarNormalFlow } from "@/base/components/Navbar";
import { isSxArray } from "@/base/components/utils/sx";
import {
Paper,
Stack,
styled,
Typography,
type TypographyProps,
} from "@mui/material";
import { Paper, Stack, styled, Typography } from "@mui/material";
/**
* An ad-hoc component that abstracts the layout common to many of the pages
@@ -43,16 +36,10 @@ const AccountsPagePaper = styled(Paper)(({ theme }) => ({
gap: theme.spacing(4),
}));
export const AccountsPageTitle: React.FC<TypographyProps> = ({
sx,
export const AccountsPageTitle: React.FC<React.PropsWithChildren> = ({
children,
...rest
}) => (
<Typography
variant="h3"
sx={[{ flex: 1 }, ...(sx ? (isSxArray(sx) ? sx : [sx]) : [])]}
{...rest}
>
<Typography variant="h3" sx={{ flex: 1 }}>
{children}
</Typography>
);

View File

@@ -214,14 +214,17 @@ const Page: React.FC<PageProps> = ({ appContext }) => {
return (
<AccountsPageContents>
<AccountsPageTitle sx={{ wordBreak: "break-word" }}>
<AccountsPageTitle>
<Trans
i18nKey="email_sent"
components={{
a: (
<Box
component={"span"}
sx={{ color: "text.muted" }}
sx={{
color: "text.muted",
wordBreak: "break-word",
}}
/>
),
}}