Skip to content

Commit 1fda7b7

Browse files
committed
Remove Typography from EmptyState
1 parent b1ebab8 commit 1fda7b7

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

site/src/components/EmptyState/EmptyState.tsx

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Box from "@mui/material/Box";
2-
import Typography from "@mui/material/Typography";
32
import type { FC, ReactNode } from "react";
43

54
export interface EmptyStateProps {
@@ -40,24 +39,21 @@ export const EmptyState: FC<React.PropsWithChildren<EmptyStateProps>> = (
4039
}}
4140
{...boxProps}
4241
>
43-
<Typography variant="h5" css={{ fontSize: 24 }}>
44-
{message}
45-
</Typography>
42+
<h5 css={{ fontSize: 24, fontWeight: 400, margin: 0 }}>{message}</h5>
4643
{description && (
47-
<Typography
48-
variant="body2"
49-
color="textSecondary"
50-
css={{
51-
marginTop: 12,
44+
<p
45+
css={(theme) => ({
46+
marginTop: 16,
5247
fontSize: 16,
5348
lineHeight: "140%",
5449
maxWidth: 480,
55-
}}
50+
color: theme.palette.text.secondary,
51+
})}
5652
>
5753
{description}
58-
</Typography>
54+
</p>
5955
)}
60-
{cta && <div css={{ marginTop: 32 }}>{cta}</div>}
56+
{cta && <div css={{ marginTop: 24 }}>{cta}</div>}
6157
{image}
6258
</Box>
6359
);

0 commit comments

Comments
 (0)