Skip to content

Commit 94a8338

Browse files
committed
🧹
1 parent bb49eb6 commit 94a8338

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

site/src/pages/ManagementSettingsPage/Sidebar.tsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { cx } from "@emotion/css";
2+
import type { Interpolation, Theme } from "@emotion/react";
23
import AddIcon from "@mui/icons-material/Add";
34
import SettingsIcon from "@mui/icons-material/Settings";
45
import type { FC, ReactNode } from "react";
@@ -17,18 +18,9 @@ export const Sidebar: FC = () => {
1718

1819
return (
1920
<BaseSidebar>
21+
<header css={styles.sidebarHeader}>Deployment</header>
2022
<DeploymentSettingsNavigation />
21-
<header
22-
css={{
23-
textTransform: "uppercase",
24-
letterSpacing: "0.15em",
25-
fontSize: 11,
26-
fontWeight: 500,
27-
paddingBottom: 4,
28-
}}
29-
>
30-
Organizations
31-
</header>
23+
<header css={styles.sidebarHeader}>Organizations</header>
3224
<SidebarNavItem
3325
active="auto"
3426
href="/organizations/new"
@@ -215,6 +207,16 @@ export const SidebarNavSubItem: FC<SidebarNavSubItemProps> = ({
215207
);
216208
};
217209

210+
const styles = {
211+
sidebarHeader: {
212+
textTransform: "uppercase",
213+
letterSpacing: "0.15em",
214+
fontSize: 11,
215+
fontWeight: 500,
216+
paddingBottom: 4,
217+
},
218+
} satisfies Record<string, Interpolation<Theme>>;
219+
218220
const classNames = {
219221
link: (css, theme) => css`
220222
color: inherit;

0 commit comments

Comments
 (0)