Skip to content

Commit 17a8a90

Browse files
committed
emotion: AppPreviewLink
1 parent 01dc826 commit 17a8a90

File tree

1 file changed

+16
-23
lines changed

1 file changed

+16
-23
lines changed
Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { makeStyles } from "@mui/styles";
21
import { Stack } from "components/Stack/Stack";
3-
import { FC } from "react";
4-
import * as TypesGen from "api/typesGenerated";
2+
import { type FC } from "react";
3+
import type * as TypesGen from "api/typesGenerated";
54
import { BaseIcon } from "./BaseIcon";
65
import { ShareIcon } from "./ShareIcon";
76

@@ -10,11 +9,22 @@ interface AppPreviewProps {
109
}
1110

1211
export const AppPreviewLink: FC<AppPreviewProps> = ({ app }) => {
13-
const styles = useStyles();
14-
1512
return (
1613
<Stack
17-
className={styles.appPreviewLink}
14+
css={(theme) => ({
15+
padding: theme.spacing(0.25, 1.5),
16+
borderRadius: 9999,
17+
border: `1px solid ${theme.palette.divider}`,
18+
color: theme.palette.text.primary,
19+
background: theme.palette.background.paper,
20+
flexShrink: 0,
21+
width: "fit-content",
22+
fontSize: 12,
23+
24+
"& img, & svg": {
25+
width: 13,
26+
},
27+
})}
1828
alignItems="center"
1929
direction="row"
2030
spacing={1}
@@ -25,20 +35,3 @@ export const AppPreviewLink: FC<AppPreviewProps> = ({ app }) => {
2535
</Stack>
2636
);
2737
};
28-
29-
const useStyles = makeStyles((theme) => ({
30-
appPreviewLink: {
31-
padding: theme.spacing(0.25, 1.5),
32-
borderRadius: 9999,
33-
border: `1px solid ${theme.palette.divider}`,
34-
color: theme.palette.text.primary,
35-
background: theme.palette.background.paper,
36-
flexShrink: 0,
37-
width: "fit-content",
38-
fontSize: 12,
39-
40-
"& img, & svg": {
41-
width: 13,
42-
},
43-
},
44-
}));

0 commit comments

Comments
 (0)