From 016c47d5359bed8bb09b49eeb1c31a40ea58f971 Mon Sep 17 00:00:00 2001 From: Benny Joo Date: Wed, 11 Dec 2024 16:17:53 -0500 Subject: [PATCH] fix: do not export client components directly in app routes (#18122) --- .../organizations/attributes/[id]/edit/page.tsx | 6 +++++- .../organizations/attributes/create/page.tsx | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/web/app/settings/(settings-layout)/organizations/attributes/[id]/edit/page.tsx b/apps/web/app/settings/(settings-layout)/organizations/attributes/[id]/edit/page.tsx index 955d365d78..09c000f874 100644 --- a/apps/web/app/settings/(settings-layout)/organizations/attributes/[id]/edit/page.tsx +++ b/apps/web/app/settings/(settings-layout)/organizations/attributes/[id]/edit/page.tsx @@ -8,4 +8,8 @@ export const generateMetadata = async () => (t) => t("edit_attribute_description") ); -export default OrgAttributesEditPage; +const OrgAttributesEditPageWrapper = async () => { + return ; +}; + +export default OrgAttributesEditPageWrapper; diff --git a/apps/web/app/settings/(settings-layout)/organizations/attributes/create/page.tsx b/apps/web/app/settings/(settings-layout)/organizations/attributes/create/page.tsx index 5a982ff92c..cb1a29db10 100644 --- a/apps/web/app/settings/(settings-layout)/organizations/attributes/create/page.tsx +++ b/apps/web/app/settings/(settings-layout)/organizations/attributes/create/page.tsx @@ -8,4 +8,8 @@ export const generateMetadata = async () => (t) => t("create_attribute_description") ); -export default OrgAttributesCreatePage; +const OrgAttributesCreatePageWrapper = async () => { + return ; +}; + +export default OrgAttributesCreatePageWrapper;