We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SectionAction
1 parent a189293 commit da11284Copy full SHA for da11284
site/src/components/SettingsLayout/SectionAction.tsx
@@ -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
-}));
+import { type FC } from "react";
9
10
/**
11
* SectionAction is a content box that call to actions should be placed
@@ -14,6 +7,13 @@ const useStyles = makeStyles((theme) => ({
14
export const SectionAction: FC<React.PropsWithChildren<unknown>> = ({
15
children,
16
}) => {
17
- const styles = useStyles();
18
- return <div className={styles.root}>{children}</div>;
+ return (
+ <div
12
+ css={(theme) => ({
13
+ marginTop: theme.spacing(3),
+ })}
+ >
+ {children}
+ </div>
+ );
19
};
0 commit comments