Files
calendar/apps/web/pages/settings/admin/orgMigrations/_OrgMigrationLayout.tsx
T
de1c9d01cd feat: orgMigration - Support moving users as an option when moving a team (#12917)
* Move orgMigration routes to app to allow them to be tested as they are here to stay for longer tim

* move to Form everywhere and fix session reading

---------

Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com>
2024-01-04 08:33:51 +05:30

34 lines
1023 B
TypeScript

import { getLayout as getSettingsLayout } from "@calcom/features/settings/layouts/SettingsLayout";
import { HorizontalTabs } from "@calcom/ui";
export default function OrgMigrationLayout({ children }: { children: React.ReactElement }) {
return getSettingsLayout(
<div>
<HorizontalTabs
tabs={[
{
name: "Move Team to Org",
href: "/settings/admin/orgMigrations/moveTeamToOrg",
},
{
name: "Move User to Org",
href: "/settings/admin/orgMigrations/moveUserToOrg",
},
{
name: "Revert: Move Team to Org",
href: "/settings/admin/orgMigrations/removeTeamFromOrg",
},
{
name: "Revert: Move User to Org",
href: "/settings/admin/orgMigrations/removeUserFromOrg",
},
]}
/>
{children}
</div>
);
}
export const getLayout = (page: React.ReactElement) => {
return <OrgMigrationLayout>{page}</OrgMigrationLayout>;
};