From 2cbae2ec6d3ce87ea6f7ec84ca8f2645373752b2 Mon Sep 17 00:00:00 2001 From: Peter Zimon Date: Fri, 19 May 2023 16:47:57 +0200 Subject: [PATCH] Added static default recipients form in AdminX refs. https://github.com/TryGhost/Team/issues/3150 --- .../settings/email/DefaultRecipients.tsx | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/ghost/admin-x-settings/src/components/settings/email/DefaultRecipients.tsx b/ghost/admin-x-settings/src/components/settings/email/DefaultRecipients.tsx index bea32d974c..e95d1d7b23 100644 --- a/ghost/admin-x-settings/src/components/settings/email/DefaultRecipients.tsx +++ b/ghost/admin-x-settings/src/components/settings/email/DefaultRecipients.tsx @@ -1,3 +1,4 @@ +import Dropdown from '../../../admin-x-ds/global/Dropdown'; import React, {useState} from 'react'; import SettingGroup from '../../../admin-x-ds/settings/SettingGroup'; import SettingGroupContent from '../../../admin-x-ds/settings/SettingGroupContent'; @@ -22,9 +23,21 @@ const DefaultRecipients: React.FC = () => { /> ); - const inputs = ( - - + const form = ( + + {}} + /> ); @@ -35,7 +48,7 @@ const DefaultRecipients: React.FC = () => { title='Default recipients' onStateChange={handleStateChange} > - {currentState === 'view' ? values : inputs} + {currentState === 'view' ? values : form} ); };