File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
site/src/components/FullPageForm Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 1
1
import { Margins } from "components/Margins/Margins" ;
2
- import { FC , ReactNode } from "react" ;
2
+ import { type FC , type ReactNode } from "react" ;
3
3
import {
4
4
PageHeader ,
5
5
PageHeaderTitle ,
6
6
PageHeaderSubtitle ,
7
7
} from "components/PageHeader/PageHeader" ;
8
- import { makeStyles } from "@mui/styles " ;
8
+ import { useTheme } from "@emotion/react " ;
9
9
10
10
export interface FullPageFormProps {
11
11
title : string ;
@@ -17,11 +17,11 @@ export const FullPageForm: FC<React.PropsWithChildren<FullPageFormProps>> = ({
17
17
detail,
18
18
children,
19
19
} ) => {
20
- const styles = useStyles ( ) ;
20
+ const theme = useTheme ( ) ;
21
21
22
22
return (
23
23
< Margins size = "small" >
24
- < PageHeader className = { styles . pageHeader } >
24
+ < PageHeader css = { { paddingBottom : theme . spacing ( 3 ) } } >
25
25
< PageHeaderTitle > { title } </ PageHeaderTitle >
26
26
{ detail && < PageHeaderSubtitle > { detail } </ PageHeaderSubtitle > }
27
27
</ PageHeader >
@@ -30,9 +30,3 @@ export const FullPageForm: FC<React.PropsWithChildren<FullPageFormProps>> = ({
30
30
</ Margins >
31
31
) ;
32
32
} ;
33
-
34
- const useStyles = makeStyles ( ( theme ) => ( {
35
- pageHeader : {
36
- paddingBottom : theme . spacing ( 3 ) ,
37
- } ,
38
- } ) ) ;
You can’t perform that action at this time.
0 commit comments