diff --git a/web/modals/threads/thread-settings-general-tab.react.js b/web/modals/threads/thread-settings-general-tab.react.js --- a/web/modals/threads/thread-settings-general-tab.react.js +++ b/web/modals/threads/thread-settings-general-tab.react.js @@ -7,15 +7,14 @@ import css from './thread-settings-general-tab.css'; type ThreadSettingsGeneralTabProps = { + +inputDisabled: boolean, +threadNameValue: string, +threadNamePlaceholder: string, +threadNameOnChange: (event: SyntheticEvent) => void, - +threadNameDisabled: boolean, +threadDescriptionValue: string, +threadDescriptionOnChange: ( event: SyntheticEvent, ) => void, - +threadDescriptionDisabled: boolean, +threadColorCurrentColor: string, +threadColorOnColorSelection: (color: string) => void, }; @@ -23,13 +22,12 @@ props: ThreadSettingsGeneralTabProps, ): React.Node { const { + inputDisabled, threadNameValue, threadNamePlaceholder, threadNameOnChange, - threadNameDisabled, threadDescriptionValue, threadDescriptionOnChange, - threadDescriptionDisabled, threadColorCurrentColor, threadColorOnColorSelection, } = props; @@ -44,7 +42,7 @@ value={threadNameValue} placeholder={threadNamePlaceholder} onChange={threadNameOnChange} - disabled={threadNameDisabled} + disabled={inputDisabled} /> @@ -55,7 +53,7 @@ value={threadDescriptionValue} placeholder="Thread description" onChange={threadDescriptionOnChange} - disabled={threadDescriptionDisabled} + disabled={inputDisabled} /> diff --git a/web/modals/threads/thread-settings-modal.react.js b/web/modals/threads/thread-settings-modal.react.js --- a/web/modals/threads/thread-settings-modal.react.js +++ b/web/modals/threads/thread-settings-modal.react.js @@ -287,17 +287,16 @@ if (currentTabType === 'general') { mainContent = (