File tree 1 file changed +8
-12
lines changed
site/src/components/EmptyState 1 file changed +8
-12
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 , ReactNode } from "react" ;
4
3
5
4
export interface EmptyStateProps {
@@ -40,24 +39,21 @@ export const EmptyState: FC<React.PropsWithChildren<EmptyStateProps>> = (
40
39
} }
41
40
{ ...boxProps }
42
41
>
43
- < Typography variant = "h5" css = { { fontSize : 24 } } >
44
- { message }
45
- </ Typography >
42
+ < h5 css = { { fontSize : 24 , fontWeight : 400 , margin : 0 } } > { message } </ h5 >
46
43
{ description && (
47
- < Typography
48
- variant = "body2"
49
- color = "textSecondary"
50
- css = { {
51
- marginTop : 12 ,
44
+ < p
45
+ css = { ( theme ) => ( {
46
+ marginTop : 16 ,
52
47
fontSize : 16 ,
53
48
lineHeight : "140%" ,
54
49
maxWidth : 480 ,
55
- } }
50
+ color : theme . palette . text . secondary ,
51
+ } ) }
56
52
>
57
53
{ description }
58
- </ Typography >
54
+ </ p >
59
55
) }
60
- { cta && < div css = { { marginTop : 32 } } > { cta } </ div > }
56
+ { cta && < div css = { { marginTop : 24 } } > { cta } </ div > }
61
57
{ image }
62
58
</ Box >
63
59
) ;
You can’t perform that action at this time.
0 commit comments