Skip to content

Commit 864246c

Browse files
committed
Remove Typography from Paywall
1 parent 1fda7b7 commit 864246c

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

site/src/components/Paywall/Paywall.tsx

Lines changed: 9 additions & 16 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, type ReactNode } from "react";
43
import { type Interpolation, type Theme } from "@emotion/react";
54
import { EnterpriseBadge } from "components/Badges/Badges";
@@ -18,21 +17,11 @@ export const Paywall: FC<React.PropsWithChildren<PaywallProps>> = (props) => {
1817
<Box css={styles.root}>
1918
<div css={styles.header}>
2019
<Stack direction="row" alignItems="center" justifyContent="center">
21-
<Typography variant="h5" css={styles.title}>
22-
{message}
23-
</Typography>
20+
<h5 css={styles.title}>{message}</h5>
2421
<EnterpriseBadge />
2522
</Stack>
2623

27-
{description && (
28-
<Typography
29-
variant="body2"
30-
color="textSecondary"
31-
css={styles.description}
32-
>
33-
{description}
34-
</Typography>
35-
)}
24+
{description && <p css={styles.description}>{description}</p>}
3625
</div>
3726
{cta}
3827
</Box>
@@ -58,13 +47,17 @@ const styles = {
5847
title: {
5948
fontWeight: 600,
6049
fontFamily: "inherit",
50+
fontSize: 24,
51+
margin: 0,
6152
},
62-
description: {
63-
marginTop: 8,
53+
description: (theme) => ({
54+
marginTop: 14,
6455
fontFamily: "inherit",
6556
maxWidth: 420,
6657
lineHeight: "160%",
67-
},
58+
color: theme.palette.text.secondary,
59+
fontSize: 16,
60+
}),
6861
enterpriseChip: (theme) => ({
6962
background: theme.palette.success.dark,
7063
color: theme.palette.success.contrastText,

0 commit comments

Comments
 (0)