Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8d7e9a8

Browse files
committed
emotion: FullPageForm
1 parent 4e033c6 commit 8d7e9a8

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Margins } from "components/Margins/Margins";
2-
import { FC, ReactNode } from "react";
2+
import { type FC, type ReactNode } from "react";
33
import {
44
PageHeader,
55
PageHeaderTitle,
66
PageHeaderSubtitle,
77
} from "components/PageHeader/PageHeader";
8-
import { makeStyles } from "@mui/styles";
8+
import { useTheme } from "@emotion/react";
99

1010
export interface FullPageFormProps {
1111
title: string;
@@ -17,11 +17,11 @@ export const FullPageForm: FC<React.PropsWithChildren<FullPageFormProps>> = ({
1717
detail,
1818
children,
1919
}) => {
20-
const styles = useStyles();
20+
const theme = useTheme();
2121

2222
return (
2323
<Margins size="small">
24-
<PageHeader className={styles.pageHeader}>
24+
<PageHeader css={{ paddingBottom: theme.spacing(3) }}>
2525
<PageHeaderTitle>{title}</PageHeaderTitle>
2626
{detail && <PageHeaderSubtitle>{detail}</PageHeaderSubtitle>}
2727
</PageHeader>
@@ -30,9 +30,3 @@ export const FullPageForm: FC<React.PropsWithChildren<FullPageFormProps>> = ({
3030
</Margins>
3131
);
3232
};
33-
34-
const useStyles = makeStyles((theme) => ({
35-
pageHeader: {
36-
paddingBottom: theme.spacing(3),
37-
},
38-
}));

0 commit comments

Comments
 (0)