chore: disable dashboard for creating new platform accounts (#27052)
* chore: disable dashboard for creating new platform accounts * chore: remove page altogether
This commit is contained in:
1 parent
14e2fa6893
commit
72dc999108
2 files changed
-69
No files matched your search
@@ -1,30 +0,0 @@
|
||||
"use client";
|
||||
|
||||
import { CreateANewPlatformForm } from "~/ee/platform/components/CreateANewPlatformForm";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Alert } from "@calcom/ui/components/alert";
|
||||
import { WizardLayout } from "@calcom/ui/components/layout";
|
||||
import { useGetUserAttributes } from "@calcom/web/components/settings/platform/hooks/useGetUserAttributes";
|
||||
|
||||
export const LayoutWrapper = ({ children }: { children: React.ReactNode }) => {
|
||||
const { t } = useLocale();
|
||||
const { isPlatformUser, userOrgId } = useGetUserAttributes();
|
||||
|
||||
if (!isPlatformUser && userOrgId) {
|
||||
return (
|
||||
<div className="flex h-full min-h-screen items-center justify-center">
|
||||
<div className="max-w-lg">
|
||||
<Alert severity="warning" title={t("organization_customer_cant_create_platform")} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<WizardLayout currentStep={1} maxSteps={1}>
|
||||
{children}
|
||||
</WizardLayout>
|
||||
);
|
||||
};
|
||||
|
||||
export default CreateANewPlatformForm;
|
||||
Reference in new issue
Block a user