* Removed emptyscreen component v1 version, migrated pages that still used it to v2, and removed v1 of workflow pages and components. * updated workflow pages imports to remove v2 from path. * Deleted v1 switch component, deleted v1 api-keys components, deleted old web integrations components that were unused. * Removed v1 list component. * Fixed event workflows tab path. * Fixed import path for button in sandbox page. * Cleanup and type fixes * Making explicit indexes * UI import migrations * More import fixes * More import fixes * Submodule sync * Type fixes * Build fixes Co-authored-by: zomars <zomars@me.com>
58 lines
1.1 KiB
TypeScript
58 lines
1.1 KiB
TypeScript
import React, { ComponentProps } from "react";
|
|
|
|
import { ErrorBoundary, Icon, Shell } from "@calcom/ui";
|
|
|
|
import NavTabs from "./NavTabs";
|
|
|
|
const tabs = [
|
|
{
|
|
name: "profile",
|
|
href: "/settings/profile",
|
|
icon: Icon.FiUser,
|
|
},
|
|
{
|
|
name: "teams",
|
|
href: "/settings/teams",
|
|
icon: Icon.FiUsers,
|
|
},
|
|
{
|
|
name: "security",
|
|
href: "/settings/security",
|
|
icon: Icon.FiKey,
|
|
},
|
|
{
|
|
name: "developer",
|
|
href: "/settings/developer",
|
|
icon: Icon.FiTerminal,
|
|
},
|
|
{
|
|
name: "billing",
|
|
href: "/settings/billing",
|
|
icon: Icon.FiCreditCard,
|
|
},
|
|
{
|
|
name: "admin",
|
|
href: "/settings/admin",
|
|
icon: Icon.FiLock,
|
|
adminRequired: true,
|
|
},
|
|
];
|
|
|
|
export default function SettingsShell({
|
|
children,
|
|
...rest
|
|
}: { children: React.ReactNode } & ComponentProps<typeof Shell>) {
|
|
return (
|
|
<Shell {...rest}>
|
|
<div className="sm:mx-auto">
|
|
<NavTabs tabs={tabs} />
|
|
</div>
|
|
<main className="max-w-4xl">
|
|
<>
|
|
<ErrorBoundary>{children}</ErrorBoundary>
|
|
</>
|
|
</main>
|
|
</Shell>
|
|
);
|
|
}
|