Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
emotion: WorkspaceProxyPage
  • Loading branch information
aslilac committed Nov 1, 2023
commit 13db92daa19d47d5cd51de0f54f61f462d6f8424
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { FC, PropsWithChildren } from "react";
import { type FC, type PropsWithChildren } from "react";
import { Section } from "components/SettingsLayout/Section";
import { WorkspaceProxyView } from "./WorkspaceProxyView";
import makeStyles from "@mui/styles/makeStyles";
import { useProxy } from "contexts/ProxyContext";

export const WorkspaceProxyPage: FC<PropsWithChildren<unknown>> = () => {
const styles = useStyles();

const description =
"Workspace proxies improve terminal and web app connections to workspaces.";

Expand All @@ -22,7 +19,15 @@ export const WorkspaceProxyPage: FC<PropsWithChildren<unknown>> = () => {
return (
<Section
title="Workspace Proxies"
className={styles.section}
css={(theme) => ({
"& code": {
background: theme.palette.divider,
fontSize: 12,
padding: "2px 4px",
color: theme.palette.text.primary,
borderRadius: 2,
},
})}
description={description}
layout="fluid"
>
Expand All @@ -38,16 +43,4 @@ export const WorkspaceProxyPage: FC<PropsWithChildren<unknown>> = () => {
);
};

const useStyles = makeStyles((theme) => ({
section: {
"& code": {
background: theme.palette.divider,
fontSize: 12,
padding: "2px 4px",
color: theme.palette.text.primary,
borderRadius: 2,
},
},
}));

export default WorkspaceProxyPage;