From 903a9734675b8b0b6023fd3d81c469df7c7fa62d Mon Sep 17 00:00:00 2001 From: psiddharthdesign <107192927+psiddharthdesign@users.noreply.github.com> Date: Tue, 20 Aug 2024 21:14:03 +0530 Subject: [PATCH] fix / revert back defaultOpen to false --- .../@sidebar/OrganizationSidebar.tsx | 2 +- src/components/FreeTrialDialog.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/(specific-organization-pages)/@sidebar/OrganizationSidebar.tsx b/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/(specific-organization-pages)/@sidebar/OrganizationSidebar.tsx index 2bc96ffc..e3e9ea3c 100644 --- a/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/(specific-organization-pages)/@sidebar/OrganizationSidebar.tsx +++ b/src/app/(dynamic-pages)/(authenticated-pages)/(application-pages)/org/[organizationId]/(specific-organization-pages)/@sidebar/OrganizationSidebar.tsx @@ -41,7 +41,7 @@ async function OrganizationSubscriptionSidebarCard({ isOrganizationAdmin={isOrganizationAdmin} organizationId={organizationId} activeProducts={activeProducts} - defaultOpen={true} + defaultOpen={false} /> } diff --git a/src/components/FreeTrialDialog.tsx b/src/components/FreeTrialDialog.tsx index 57de45cb..b8093d84 100644 --- a/src/components/FreeTrialDialog.tsx +++ b/src/components/FreeTrialDialog.tsx @@ -39,7 +39,7 @@ type FreeTrialDialogProps = { isOrganizationAdmin: boolean, defaultOpen?: boolean } -export function FreeTrialDialog({ organizationId, activeProducts, isOrganizationAdmin, defaultOpen = true }: FreeTrialDialogProps) { +export function FreeTrialDialog({ organizationId, activeProducts, isOrganizationAdmin, defaultOpen = false }: FreeTrialDialogProps) { // this should be true const [open, setOpen] = useState(defaultOpen) // supabase cannot sort by foreign table, so we do it here