Skip to content

Commit 13db92d

Browse files
committed
emotion: WorkspaceProxyPage
1 parent f132aee commit 13db92d

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed
Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
import { FC, PropsWithChildren } from "react";
1+
import { type FC, type PropsWithChildren } from "react";
22
import { Section } from "components/SettingsLayout/Section";
33
import { WorkspaceProxyView } from "./WorkspaceProxyView";
4-
import makeStyles from "@mui/styles/makeStyles";
54
import { useProxy } from "contexts/ProxyContext";
65

76
export const WorkspaceProxyPage: FC<PropsWithChildren<unknown>> = () => {
8-
const styles = useStyles();
9-
107
const description =
118
"Workspace proxies improve terminal and web app connections to workspaces.";
129

@@ -22,7 +19,15 @@ export const WorkspaceProxyPage: FC<PropsWithChildren<unknown>> = () => {
2219
return (
2320
<Section
2421
title="Workspace Proxies"
25-
className={styles.section}
22+
css={(theme) => ({
23+
"& code": {
24+
background: theme.palette.divider,
25+
fontSize: 12,
26+
padding: "2px 4px",
27+
color: theme.palette.text.primary,
28+
borderRadius: 2,
29+
},
30+
})}
2631
description={description}
2732
layout="fluid"
2833
>
@@ -38,16 +43,4 @@ export const WorkspaceProxyPage: FC<PropsWithChildren<unknown>> = () => {
3843
);
3944
};
4045

41-
const useStyles = makeStyles((theme) => ({
42-
section: {
43-
"& code": {
44-
background: theme.palette.divider,
45-
fontSize: 12,
46-
padding: "2px 4px",
47-
color: theme.palette.text.primary,
48-
borderRadius: 2,
49-
},
50-
},
51-
}));
52-
5346
export default WorkspaceProxyPage;

0 commit comments

Comments
 (0)