Skip to content

Commit 01dc826

Browse files
committed
emotion: Resources
1 parent 31355b5 commit 01dc826

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

site/src/components/Resources/Resources.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { type Interpolation, type Theme } from "@emotion/react";
12
import Button from "@mui/material/Button";
2-
import { makeStyles } from "@mui/styles";
3+
import { type FC, useState } from "react";
4+
import type { WorkspaceAgent, WorkspaceResource } from "api/typesGenerated";
35
import { DropdownArrow } from "components/DropdownArrow/DropdownArrow";
4-
import { FC, useState } from "react";
5-
import { WorkspaceAgent, WorkspaceResource } from "api/typesGenerated";
66
import { Stack } from "../Stack/Stack";
77
import { ResourceCard } from "./ResourceCard";
88

@@ -19,7 +19,6 @@ export const Resources: FC<React.PropsWithChildren<ResourcesProps>> = ({
1919
resources,
2020
agentRow,
2121
}) => {
22-
const styles = useStyles();
2322
const [shouldDisplayHideResources, setShouldDisplayHideResources] =
2423
useState(false);
2524
const displayResources = shouldDisplayHideResources
@@ -40,9 +39,9 @@ export const Resources: FC<React.PropsWithChildren<ResourcesProps>> = ({
4039
/>
4140
))}
4241
{hasHideResources && (
43-
<div className={styles.buttonWrapper}>
42+
<div css={styles.buttonWrapper}>
4443
<Button
45-
className={styles.showMoreButton}
44+
css={styles.showMoreButton}
4645
size="small"
4746
onClick={() => setShouldDisplayHideResources((v) => !v)}
4847
>
@@ -55,17 +54,17 @@ export const Resources: FC<React.PropsWithChildren<ResourcesProps>> = ({
5554
);
5655
};
5756

58-
const useStyles = makeStyles((theme) => ({
59-
buttonWrapper: {
57+
const styles = {
58+
buttonWrapper: (theme) => ({
6059
display: "flex",
6160
alignItems: "center",
6261
justifyContent: "center",
6362
marginTop: theme.spacing(2),
64-
},
63+
}),
6564

6665
showMoreButton: {
6766
borderRadius: 9999,
6867
width: "100%",
6968
maxWidth: 260,
7069
},
71-
}));
70+
} satisfies Record<string, Interpolation<Theme>>;

0 commit comments

Comments
 (0)