* 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>
34 lines
1023 B
TypeScript
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>;
|
|
};
|