Skip to content

chore: consolidate ManageSettingsLayout code #14885

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
Oct 3, 2024
Prev Previous commit
Next Next commit
fix some stories
  • Loading branch information
aslilac committed Oct 3, 2024
commit 6581e8d3e43e39347f3a3ffdb94e33a62edc77cb
9 changes: 8 additions & 1 deletion site/src/modules/management/SidebarView.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import { withDashboardProvider } from "testHelpers/storybook";
import { SidebarView } from "./SidebarView";

const meta: Meta<typeof SidebarView> = {
title: "components/MultiOrgSidebarView",
title: "modules/management/SidebarView",
component: SidebarView,
decorators: [withDashboardProvider],
parameters: { showOrganizations: true },
args: {
activeSettings: true,
activeOrganizationName: undefined,
Expand Down Expand Up @@ -222,3 +223,9 @@ export const SelectedMultiOrgAdminAndUserAdmin: Story = {
],
},
};

export const OrgsDisabled: Story = {
parameters: {
showOrganizations: false,
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import {
MockOrganization,
} from "testHelpers/entities";
import { OrganizationSettingsPageView } from "./OrganizationSettingsPageView";
import { withManagementSettingsProvider } from "testHelpers/storybook";

const meta: Meta<typeof OrganizationSettingsPageView> = {
title: "pages/OrganizationSettingsPageView",
component: OrganizationSettingsPageView,
parameters: { chromatic },
decorators: [withManagementSettingsProvider],
args: {
organization: MockOrganization,
},
Expand Down
Loading