File tree 1 file changed +10
-17
lines changed
site/src/pages/UserSettingsPage/WorkspaceProxyPage 1 file changed +10
-17
lines changed Original file line number Diff line number Diff line change 1
- import { FC , PropsWithChildren } from "react" ;
1
+ import { type FC , type PropsWithChildren } from "react" ;
2
2
import { Section } from "components/SettingsLayout/Section" ;
3
3
import { WorkspaceProxyView } from "./WorkspaceProxyView" ;
4
- import makeStyles from "@mui/styles/makeStyles" ;
5
4
import { useProxy } from "contexts/ProxyContext" ;
6
5
7
6
export const WorkspaceProxyPage : FC < PropsWithChildren < unknown > > = ( ) => {
8
- const styles = useStyles ( ) ;
9
-
10
7
const description =
11
8
"Workspace proxies improve terminal and web app connections to workspaces." ;
12
9
@@ -22,7 +19,15 @@ export const WorkspaceProxyPage: FC<PropsWithChildren<unknown>> = () => {
22
19
return (
23
20
< Section
24
21
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
+ } ) }
26
31
description = { description }
27
32
layout = "fluid"
28
33
>
@@ -38,16 +43,4 @@ export const WorkspaceProxyPage: FC<PropsWithChildren<unknown>> = () => {
38
43
) ;
39
44
} ;
40
45
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
-
53
46
export default WorkspaceProxyPage ;
You can’t perform that action at this time.
0 commit comments