diff --git a/web/modals/threads/thread-settings-delete-tab.react.js b/web/modals/threads/thread-settings-delete-tab.react.js index 976fc418f..041e56171 100644 --- a/web/modals/threads/thread-settings-delete-tab.react.js +++ b/web/modals/threads/thread-settings-delete-tab.react.js @@ -1,51 +1,44 @@ // @flow import * as React from 'react'; import css from './thread-settings-modal.css'; type ThreadSettingsDeleteTabProps = { +accountPassword: string, +onChangeAccountPassword: (event: SyntheticEvent) => void, +inputDisabled: boolean, - +accountPasswordInputRef: (accountPasswordInput: ?HTMLInputElement) => void, }; function ThreadSettingsDeleteTab( props: ThreadSettingsDeleteTabProps, ): React.Node { - const { - accountPassword, - onChangeAccountPassword, - inputDisabled, - accountPasswordInputRef, - } = props; + const { accountPassword, onChangeAccountPassword, inputDisabled } = props; return ( <>

Your thread will be permanently deleted. There is no way to reverse this.

Please enter your account password to confirm your identity

Account password
); } export default ThreadSettingsDeleteTab; diff --git a/web/modals/threads/thread-settings-general-tab.react.js b/web/modals/threads/thread-settings-general-tab.react.js index ebec84f58..8e078428e 100644 --- a/web/modals/threads/thread-settings-general-tab.react.js +++ b/web/modals/threads/thread-settings-general-tab.react.js @@ -1,76 +1,73 @@ // @flow import * as React from 'react'; import Input from '../input.react.js'; import ColorSelector from './color-selector.react.js'; import css from './thread-settings-general-tab.css'; type ThreadSettingsGeneralTabProps = { +threadNameValue: string, +threadNamePlaceholder: string, +threadNameOnChange: (event: SyntheticEvent) => void, +threadNameDisabled: boolean, - +threadNameInputRef: (nameInput: ?HTMLInputElement) => void, +threadDescriptionValue: string, +threadDescriptionOnChange: ( event: SyntheticEvent, ) => void, +threadDescriptionDisabled: boolean, +threadColorCurrentColor: string, +threadColorOnColorSelection: (color: string) => void, }; function ThreadSettingsGeneralTab( props: ThreadSettingsGeneralTabProps, ): React.Node { const { threadNameValue, threadNamePlaceholder, threadNameOnChange, threadNameDisabled, - threadNameInputRef, threadDescriptionValue, threadDescriptionOnChange, threadDescriptionDisabled, threadColorCurrentColor, threadColorOnColorSelection, } = props; return (
Thread name
Description