From bf428d015af4097ee06c084e0be4f94367c4b24e Mon Sep 17 00:00:00 2001 From: Sag Date: Mon, 16 Dec 2024 13:28:21 +0800 Subject: [PATCH] Hid the free tier in Portal settings, if site is set to paid-members only --- .../src/global/form/Checkbox.tsx | 5 ++- .../membership/portal/SignupOptions.tsx | 4 +- .../test/acceptance/membership/portal.test.ts | 44 +++++++++++++++++-- 3 files changed, 46 insertions(+), 7 deletions(-) diff --git a/apps/admin-x-design-system/src/global/form/Checkbox.tsx b/apps/admin-x-design-system/src/global/form/Checkbox.tsx index f620dc85208..27dab3539e5 100644 --- a/apps/admin-x-design-system/src/global/form/Checkbox.tsx +++ b/apps/admin-x-design-system/src/global/form/Checkbox.tsx @@ -15,9 +15,10 @@ export interface CheckboxProps { key?: string; checked?: boolean; separator?: boolean; + testId?: string; } -const Checkbox: React.FC = ({title, label, value, onChange, disabled, error, hint, checked, separator}) => { +const Checkbox: React.FC = ({title, label, value, onChange, disabled, error, hint, checked, separator, testId}) => { const id = useId(); const handleCheckedChange = (isChecked: boolean | 'indeterminate') => { @@ -29,7 +30,7 @@ const Checkbox: React.FC = ({title, label, value, onChange, disab
{title && {title}}