1
- import { makeStyles } from "@mui/styles" ;
2
1
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" ;
5
4
import { BaseIcon } from "./BaseIcon" ;
6
5
import { ShareIcon } from "./ShareIcon" ;
7
6
@@ -10,11 +9,22 @@ interface AppPreviewProps {
10
9
}
11
10
12
11
export const AppPreviewLink : FC < AppPreviewProps > = ( { app } ) => {
13
- const styles = useStyles ( ) ;
14
-
15
12
return (
16
13
< 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
+ } ) }
18
28
alignItems = "center"
19
29
direction = "row"
20
30
spacing = { 1 }
@@ -25,20 +35,3 @@ export const AppPreviewLink: FC<AppPreviewProps> = ({ app }) => {
25
35
</ Stack >
26
36
) ;
27
37
} ;
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