From 69a8f71bd1dd7e394fff4c61c00372187f044051 Mon Sep 17 00:00:00 2001 From: Djordje Vlaisavljevic Date: Wed, 13 Dec 2023 16:45:08 +0000 Subject: [PATCH] Switched checkbox to a hint showing status refs PROD-276 --- .../membership/tiers/TierDetailModal.tsx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/apps/admin-x-settings/src/components/settings/membership/tiers/TierDetailModal.tsx b/apps/admin-x-settings/src/components/settings/membership/tiers/TierDetailModal.tsx index 7c463582bb..e68ed338a0 100644 --- a/apps/admin-x-settings/src/components/settings/membership/tiers/TierDetailModal.tsx +++ b/apps/admin-x-settings/src/components/settings/membership/tiers/TierDetailModal.tsx @@ -3,7 +3,7 @@ import React, {useEffect, useRef} from 'react'; import TierDetailPreview from './TierDetailPreview'; import useFeatureFlag from '../../../../hooks/useFeatureFlag'; import useSettingGroup from '../../../../hooks/useSettingGroup'; -import {Button, ButtonProps, Checkbox, ConfirmationModal, CurrencyField, Form, Heading, Icon, Modal, Select, SortableList, TextField, Toggle, URLTextField, showToast, useSortableIndexedList} from '@tryghost/admin-x-design-system'; +import {Button, ButtonProps, ConfirmationModal, CurrencyField, Form, Heading, Hint, Icon, Modal, Select, SortableList, TextField, Toggle, URLTextField, showToast, useSortableIndexedList} from '@tryghost/admin-x-design-system'; import {ErrorMessages, useForm, useHandleError} from '@tryghost/admin-x-framework/hooks'; import {RoutingModalProps, useRouting} from '@tryghost/admin-x-framework/routing'; import {Tier, useAddTier, useBrowseTiers, useEditTier} from '@tryghost/admin-x-framework/api/tiers'; @@ -364,15 +364,12 @@ const TierDetailModalContent: React.FC<{tier?: Tier}> = ({tier}) => { {hasPortalImprovements && -
- { - updateForm(state => ({...state, visibility: checked ? 'public' : 'none'})); - }} - > + + +

{(formState.visibility === 'public') ? 'Visible' : 'Not visible'} at signup. You can change this in {tier ?