Skip to content

Commit

Permalink
remove settings tab
Browse files Browse the repository at this point in the history
  • Loading branch information
abelanger5 committed Jun 27, 2024
1 parent 19d2c22 commit 30ad8e8
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 137 deletions.
62 changes: 0 additions & 62 deletions frontend/app/src/pages/main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,68 +127,6 @@ function Sidebar({ className, memberships, currTenant }: SidebarProps) {
/>
</div>
</div>
<div className="py-2">
<h2 className="mb-2 text-lg font-semibold tracking-tight">
Settings
</h2>
<div className="space-y-1">
<SidebarButtonPrimary
onNavLinkClick={onNavLinkClick}
to="/tenant-settings/overview"
prefix="/tenant-settings"
name="General"
icon={<GearIcon className="mr-2 h-4 w-4" />}
collapsibleChildren={[
<SidebarButtonSecondary
key={1}
onNavLinkClick={onNavLinkClick}
to="/tenant-settings/overview"
name="Overview"
/>,
<SidebarButtonSecondary
key={2}
onNavLinkClick={onNavLinkClick}
to="/tenant-settings/api-tokens"
name="API Tokens"
/>,
<SidebarButtonSecondary
key={2}
onNavLinkClick={onNavLinkClick}
to="/tenant-settings/webhooks"
name="Webhooks"
/>,
<SidebarButtonSecondary
key={3}
onNavLinkClick={onNavLinkClick}
to="/tenant-settings/members"
name="Members"
/>,
<SidebarButtonSecondary
key={4}
onNavLinkClick={onNavLinkClick}
to="/tenant-settings/billing-and-limits"
name={
meta?.data.canBill
? 'Billing & Limits'
: 'Resource Limits'
}
/>,
<SidebarButtonSecondary
key={4}
onNavLinkClick={onNavLinkClick}
to="/tenant-settings/alerting"
name="Alerting"
/>,
<SidebarButtonSecondary
key={4}
onNavLinkClick={onNavLinkClick}
to="/tenant-settings/ingestors"
name="Ingestors"
/>,
]}
/>
</div>
</div>
</div>
<TenantSwitcher memberships={memberships} currTenant={currTenant} />
</div>
Expand Down
150 changes: 75 additions & 75 deletions frontend/app/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,81 +206,81 @@ const routes: RouteObject[] = [
};
}),
},
{
path: '/tenant-settings/overview',
lazy: async () =>
import('./pages/main/tenant-settings/overview').then(
(res) => {
return {
Component: res.default,
};
},
),
},
{
path: '/tenant-settings/api-tokens',
lazy: async () =>
import('./pages/main/tenant-settings/api-tokens').then(
(res) => {
return {
Component: res.default,
};
},
),
},
{
path: '/tenant-settings/webhooks',
lazy: async () =>
import('./pages/main/tenant-settings/webhooks').then(
(res) => {
return {
Component: res.default,
};
},
),
},
{
path: '/tenant-settings/members',
lazy: async () =>
import('./pages/main/tenant-settings/members').then((res) => {
return {
Component: res.default,
};
}),
},
{
path: '/tenant-settings/alerting',
lazy: async () =>
import('./pages/main/tenant-settings/alerting').then(
(res) => {
return {
Component: res.default,
};
},
),
},
{
path: '/tenant-settings/billing-and-limits',
lazy: async () =>
import('./pages/main/tenant-settings/resource-limits').then(
(res) => {
return {
Component: res.default,
};
},
),
},
{
path: '/tenant-settings/ingestors',
lazy: async () =>
import('./pages/main/tenant-settings/ingestors').then(
(res) => {
return {
Component: res.default,
};
},
),
},
// {
// path: '/tenant-settings/overview',
// lazy: async () =>
// import('./pages/main/tenant-settings/overview').then(
// (res) => {
// return {
// Component: res.default,
// };
// },
// ),
// },
// {
// path: '/tenant-settings/api-tokens',
// lazy: async () =>
// import('./pages/main/tenant-settings/api-tokens').then(
// (res) => {
// return {
// Component: res.default,
// };
// },
// ),
// },
// {
// path: '/tenant-settings/webhooks',
// lazy: async () =>
// import('./pages/main/tenant-settings/webhooks').then(
// (res) => {
// return {
// Component: res.default,
// };
// },
// ),
// },
// {
// path: '/tenant-settings/members',
// lazy: async () =>
// import('./pages/main/tenant-settings/members').then((res) => {
// return {
// Component: res.default,
// };
// }),
// },
// {
// path: '/tenant-settings/alerting',
// lazy: async () =>
// import('./pages/main/tenant-settings/alerting').then(
// (res) => {
// return {
// Component: res.default,
// };
// },
// ),
// },
// {
// path: '/tenant-settings/billing-and-limits',
// lazy: async () =>
// import('./pages/main/tenant-settings/resource-limits').then(
// (res) => {
// return {
// Component: res.default,
// };
// },
// ),
// },
// {
// path: '/tenant-settings/ingestors',
// lazy: async () =>
// import('./pages/main/tenant-settings/ingestors').then(
// (res) => {
// return {
// Component: res.default,
// };
// },
// ),
// },
],
},
],
Expand Down

0 comments on commit 30ad8e8

Please sign in to comment.