File tree 1 file changed +9
-16
lines changed
site/src/components/Paywall 1 file changed +9
-16
lines changed Original file line number Diff line number Diff line change 1
1
import Box from "@mui/material/Box" ;
2
- import Typography from "@mui/material/Typography" ;
3
2
import { type FC , type ReactNode } from "react" ;
4
3
import { type Interpolation , type Theme } from "@emotion/react" ;
5
4
import { EnterpriseBadge } from "components/Badges/Badges" ;
@@ -18,21 +17,11 @@ export const Paywall: FC<React.PropsWithChildren<PaywallProps>> = (props) => {
18
17
< Box css = { styles . root } >
19
18
< div css = { styles . header } >
20
19
< 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 >
24
21
< EnterpriseBadge />
25
22
</ Stack >
26
23
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 > }
36
25
</ div >
37
26
{ cta }
38
27
</ Box >
@@ -58,13 +47,17 @@ const styles = {
58
47
title : {
59
48
fontWeight : 600 ,
60
49
fontFamily : "inherit" ,
50
+ fontSize : 24 ,
51
+ margin : 0 ,
61
52
} ,
62
- description : {
63
- marginTop : 8 ,
53
+ description : ( theme ) => ( {
54
+ marginTop : 14 ,
64
55
fontFamily : "inherit" ,
65
56
maxWidth : 420 ,
66
57
lineHeight : "160%" ,
67
- } ,
58
+ color : theme . palette . text . secondary ,
59
+ fontSize : 16 ,
60
+ } ) ,
68
61
enterpriseChip : ( theme ) => ( {
69
62
background : theme . palette . success . dark ,
70
63
color : theme . palette . success . contrastText ,
You can’t perform that action at this time.
0 commit comments