Skip to content

Commit da11284

Browse files
committed
emotion: SectionAction
1 parent a189293 commit da11284

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
import { makeStyles } from "@mui/styles";
2-
import { FC } from "react";
3-
4-
const useStyles = makeStyles((theme) => ({
5-
root: {
6-
marginTop: theme.spacing(3),
7-
},
8-
}));
1+
import { type FC } from "react";
92

103
/**
114
* SectionAction is a content box that call to actions should be placed
@@ -14,6 +7,13 @@ const useStyles = makeStyles((theme) => ({
147
export const SectionAction: FC<React.PropsWithChildren<unknown>> = ({
158
children,
169
}) => {
17-
const styles = useStyles();
18-
return <div className={styles.root}>{children}</div>;
10+
return (
11+
<div
12+
css={(theme) => ({
13+
marginTop: theme.spacing(3),
14+
})}
15+
>
16+
{children}
17+
</div>
18+
);
1919
};

0 commit comments

Comments
 (0)