From ffe8593a077b001ee6ea023ea340e5fe14a06ea4 Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 15 Jul 2025 12:07:25 -0700 Subject: [PATCH] Remove create site modal --- .../settings/sites/CreateSiteModal.tsx | 82 ------------------- 1 file changed, 82 deletions(-) delete mode 100644 src/app/[orgId]/settings/sites/CreateSiteModal.tsx diff --git a/src/app/[orgId]/settings/sites/CreateSiteModal.tsx b/src/app/[orgId]/settings/sites/CreateSiteModal.tsx deleted file mode 100644 index 8ecee55c..00000000 --- a/src/app/[orgId]/settings/sites/CreateSiteModal.tsx +++ /dev/null @@ -1,82 +0,0 @@ -"use client"; - -import { Button } from "@app/components/ui/button"; -import { useState } from "react"; -import { - Credenza, - CredenzaBody, - CredenzaClose, - CredenzaContent, - CredenzaDescription, - CredenzaFooter, - CredenzaHeader, - CredenzaTitle -} from "@app/components/Credenza"; -import { SiteRow } from "./SitesTable"; -import CreateSiteForm from "./CreateSiteForm"; -import { useTranslations } from "next-intl"; - -type CreateSiteFormProps = { - open: boolean; - setOpen: (open: boolean) => void; - onCreate?: (site: SiteRow) => void; - orgId: string; -}; - -export default function CreateSiteFormModal({ - open, - setOpen, - onCreate, - orgId -}: CreateSiteFormProps) { - const [loading, setLoading] = useState(false); - const [isChecked, setIsChecked] = useState(false); - const t = useTranslations(); - - return ( - <> - { - setOpen(val); - setLoading(false); - }} - > - - - {t('siteCreate')} - - {t('siteCreateDescription')} - - - -
- setLoading(val)} - setChecked={(val) => setIsChecked(val)} - onCreate={onCreate} - orgId={orgId} - /> -
-
- - - - - - -
-
- - ); -}