From 20c3a059e2f903b30fc807e2c30a70a6d0773229 Mon Sep 17 00:00:00 2001 From: Dave Samojlenko Date: Fri, 25 Aug 2023 11:45:00 -0400 Subject: [PATCH] chore: Remove leftnav from manage-permissions (#2595) Remove leftnav from manage-permissions --- pages/admin/accounts/[id]/manage-forms.tsx | 2 +- pages/admin/accounts/[id]/manage-permissions.tsx | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pages/admin/accounts/[id]/manage-forms.tsx b/pages/admin/accounts/[id]/manage-forms.tsx index b269543dd4..536d84451d 100644 --- a/pages/admin/accounts/[id]/manage-forms.tsx +++ b/pages/admin/accounts/[id]/manage-forms.tsx @@ -200,7 +200,7 @@ ManageForms.getLayout = (page: ReactElement) => { context="admin" leftColumnContent={} > - {page} + {page} ); }; diff --git a/pages/admin/accounts/[id]/manage-permissions.tsx b/pages/admin/accounts/[id]/manage-permissions.tsx index 7ac37113ea..7074009316 100644 --- a/pages/admin/accounts/[id]/manage-permissions.tsx +++ b/pages/admin/accounts/[id]/manage-permissions.tsx @@ -10,11 +10,12 @@ import { requireAuthentication } from "@lib/auth"; import { checkPrivileges, getAllPrivileges } from "@lib/privileges"; import { logMessage } from "@lib/logger"; import { getUser } from "@lib/users"; -import AdminNavLayout from "@components/globals/layouts/AdminNavLayout"; import { Button, Alert } from "@components/globals"; import { BackLink } from "@components/admin/LeftNav/BackLink"; import { PermissionToggle } from "@components/admin/Users/PermissionToggle"; import { LinkButton } from "@components/globals"; +import { TwoColumnLayout } from "@components/globals/layouts"; +import { TemplateStoreProvider } from "@components/form-builder/store"; type PrivilegeList = Omit[]; interface User { @@ -229,12 +230,13 @@ const BackToAccounts = ({ id }: { id: string }) => { ManagePermissions.getLayout = (page: ReactElement) => { return ( - } + context="admin" + leftColumnContent={} > {page} - + ); };