diff options
author | 2022-11-02 06:31:36 +0530 | |
---|---|---|
committer | 2022-11-02 01:01:36 +0000 | |
commit | 302d595f7c289387e53a0ef7df4d574ed4e25d70 (patch) | |
tree | 2385e59eaca9c78921d9b0b3681cfba1b3eef168 /src/containers/settings/EditSettingsScreen.tsx | |
parent | Re-enable editing of the address bar to manually access a different url withi... (diff) | |
download | ferdium-app-302d595f7c289387e53a0ef7df4d574ed4e25d70.tar.gz ferdium-app-302d595f7c289387e53a0ef7df4d574ed4e25d70.tar.zst ferdium-app-302d595f7c289387e53a0ef7df4d574ed4e25d70.zip |
Transform to TS and refactored components w.r.t deletion if duplicated Input component (#729)
Diffstat (limited to 'src/containers/settings/EditSettingsScreen.tsx')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.tsx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/containers/settings/EditSettingsScreen.tsx b/src/containers/settings/EditSettingsScreen.tsx index 162d422ce..0d8a0a758 100644 --- a/src/containers/settings/EditSettingsScreen.tsx +++ b/src/containers/settings/EditSettingsScreen.tsx | |||
@@ -1,7 +1,7 @@ | |||
1 | import { ipcRenderer } from 'electron'; | 1 | import { ipcRenderer } from 'electron'; |
2 | import { Component, ReactElement } from 'react'; | 2 | import { Component, ReactElement } from 'react'; |
3 | import { inject, observer } from 'mobx-react'; | 3 | import { inject, observer } from 'mobx-react'; |
4 | import { defineMessages, injectIntl } from 'react-intl'; | 4 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; |
5 | 5 | ||
6 | import { FormFields } from '../../@types/mobx-form.types'; | 6 | import { FormFields } from '../../@types/mobx-form.types'; |
7 | import { StoresProps } from '../../@types/ferdium-components.types'; | 7 | import { StoresProps } from '../../@types/ferdium-components.types'; |
@@ -314,10 +314,10 @@ const messages = defineMessages({ | |||
314 | }, | 314 | }, |
315 | }); | 315 | }); |
316 | 316 | ||
317 | interface EditSettingsScreenProps extends StoresProps { | 317 | interface EditSettingsScreenProps extends StoresProps, WrappedComponentProps {} |
318 | intl: any; | ||
319 | } | ||
320 | 318 | ||
319 | @inject('stores', 'actions') | ||
320 | @observer | ||
321 | class EditSettingsScreen extends Component<EditSettingsScreenProps> { | 321 | class EditSettingsScreen extends Component<EditSettingsScreenProps> { |
322 | state = { | 322 | state = { |
323 | lockedPassword: '', | 323 | lockedPassword: '', |
@@ -962,9 +962,6 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
962 | } | 962 | } |
963 | isSplitModeEnabled={this.props.stores.settings.app.splitMode} | 963 | isSplitModeEnabled={this.props.stores.settings.app.splitMode} |
964 | isTodosActivated={this.props.stores.todos.isFeatureEnabledByUser} | 964 | isTodosActivated={this.props.stores.todos.isFeatureEnabledByUser} |
965 | isUsingCustomTodoService={ | ||
966 | this.props.stores.todos.isUsingCustomTodoService | ||
967 | } | ||
968 | openProcessManager={() => this.openProcessManager()} | 965 | openProcessManager={() => this.openProcessManager()} |
969 | isOnline={app.isOnline} | 966 | isOnline={app.isOnline} |
970 | serverURL={importExportURL()} | 967 | serverURL={importExportURL()} |
@@ -974,6 +971,4 @@ class EditSettingsScreen extends Component<EditSettingsScreenProps> { | |||
974 | } | 971 | } |
975 | } | 972 | } |
976 | 973 | ||
977 | export default injectIntl( | 974 | export default injectIntl(EditSettingsScreen); |
978 | inject('stores', 'actions')(observer(EditSettingsScreen)), | ||
979 | ); | ||