diff --git a/ghost/admin-x-settings/src/admin-x-ds/global/Dropdown.tsx b/ghost/admin-x-settings/src/admin-x-ds/global/Dropdown.tsx index 397ac6c6bf..11917cc388 100644 --- a/ghost/admin-x-settings/src/admin-x-ds/global/Dropdown.tsx +++ b/ghost/admin-x-settings/src/admin-x-ds/global/Dropdown.tsx @@ -18,7 +18,7 @@ interface DropdownProps { } const Dropdown: React.FC = ({title, options, onSelect, error, hint, defaultSelectedOption}) => { - const [selectedOption, setSelectedOption] = useState(''); + const [selectedOption, setSelectedOption] = useState(defaultSelectedOption); useEffect(() => { if (defaultSelectedOption) { @@ -34,7 +34,7 @@ const Dropdown: React.FC = ({title, options, onSelect, error, hin return (
- {title && {title}} + {title && {title}} { { heading: 'Subscription access', key: 'subscription-access', - value: 'Anyone' + value: 'Anyone can sign up' }, { heading: 'Default post access', @@ -32,9 +33,42 @@ const Access: React.FC = () => { /> ); - const inputs = ( - - + const form = ( + + {}} + /> + {}} + /> + {}} + /> ); @@ -45,7 +79,7 @@ const Access: React.FC = () => { title='Access' onStateChange={handleStateChange} > - {currentState === 'view' ? values : inputs} + {currentState === 'view' ? values : form} ); };