Skip to content

feat: unify organization and deployment management settings #13602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jul 1, 2024
Prev Previous commit
Next Next commit
🧹
  • Loading branch information
aslilac committed Jun 28, 2024
commit 94a8338962c652e379ced167982626befc31a57f
24 changes: 13 additions & 11 deletions site/src/pages/ManagementSettingsPage/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { cx } from "@emotion/css";
import type { Interpolation, Theme } from "@emotion/react";
import AddIcon from "@mui/icons-material/Add";
import SettingsIcon from "@mui/icons-material/Settings";
import type { FC, ReactNode } from "react";
Expand All @@ -17,18 +18,9 @@ export const Sidebar: FC = () => {

return (
<BaseSidebar>
<header css={styles.sidebarHeader}>Deployment</header>
<DeploymentSettingsNavigation />
<header
css={{
textTransform: "uppercase",
letterSpacing: "0.15em",
fontSize: 11,
fontWeight: 500,
paddingBottom: 4,
}}
>
Organizations
</header>
<header css={styles.sidebarHeader}>Organizations</header>
<SidebarNavItem
active="auto"
href="/organizations/new"
Expand Down Expand Up @@ -215,6 +207,16 @@ export const SidebarNavSubItem: FC<SidebarNavSubItemProps> = ({
);
};

const styles = {
sidebarHeader: {
textTransform: "uppercase",
letterSpacing: "0.15em",
fontSize: 11,
fontWeight: 500,
paddingBottom: 4,
},
} satisfies Record<string, Interpolation<Theme>>;

const classNames = {
link: (css, theme) => css`
color: inherit;
Expand Down
Loading