refactor sites settings general form

This commit is contained in:
Milo Schwartz
2024-11-10 23:08:06 -05:00
parent a7955cb8d2
commit e77fb37ef1
25 changed files with 159 additions and 367 deletions

View File

@@ -133,6 +133,9 @@ export default function CreateSiteForm({ open, setOpen }: CreateSiteFormProps) {
const niceId = res.data.data.niceId;
// navigate to the site page
router.push(`/${orgId}/settings/sites/${niceId}`);
// close the modal
setOpen(false);
}
setLoading(false);
@@ -258,6 +261,11 @@ sh get-docker.sh`;
)}
</div>
<span className="text-sm text-muted-foreground mt-2">
You will only be able to see the
configuration once.
</span>
<div className="flex items-center space-x-2">
<Checkbox
id="terms"

View File

@@ -141,7 +141,6 @@ export default function SitesTable({ sites, orgId }: SitesTableProps) {
columns={columns}
data={sites}
addSite={() => {
// router.push(`/${orgId}/settings/sites/create`);
setIsCreateModalOpen(true);
}}
/>