diff options
Diffstat (limited to 'src/components/settings')
-rw-r--r-- | src/components/settings/services/EditServiceForm.tsx | 3 | ||||
-rw-r--r-- | src/components/settings/settings/EditSettingsForm.tsx | 3 | ||||
-rw-r--r-- | src/components/settings/user/EditUserForm.tsx | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/components/settings/services/EditServiceForm.tsx b/src/components/settings/services/EditServiceForm.tsx index 7104b1344..2b87dff1e 100644 --- a/src/components/settings/services/EditServiceForm.tsx +++ b/src/components/settings/services/EditServiceForm.tsx | |||
@@ -4,6 +4,7 @@ import { Link } from 'react-router-dom'; | |||
4 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; | 4 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; |
5 | import normalizeUrl from 'normalize-url'; | 5 | import normalizeUrl from 'normalize-url'; |
6 | import { mdiInformation } from '@mdi/js'; | 6 | import { mdiInformation } from '@mdi/js'; |
7 | import { noop } from 'lodash'; | ||
7 | import Form from '../../../lib/Form'; | 8 | import Form from '../../../lib/Form'; |
8 | import Tabs from '../../ui/Tabs/Tabs'; | 9 | import Tabs from '../../ui/Tabs/Tabs'; |
9 | import TabItem from '../../ui/Tabs/TabItem'; | 10 | import TabItem from '../../ui/Tabs/TabItem'; |
@@ -213,7 +214,7 @@ class EditServiceForm extends Component<IProps, IState> { | |||
213 | 214 | ||
214 | this.setState({ isValidatingCustomUrl: false }); | 215 | this.setState({ isValidatingCustomUrl: false }); |
215 | }, | 216 | }, |
216 | onError: () => {}, | 217 | onError: noop, |
217 | }); | 218 | }); |
218 | } | 219 | } |
219 | 220 | ||
diff --git a/src/components/settings/settings/EditSettingsForm.tsx b/src/components/settings/settings/EditSettingsForm.tsx index c8e7e2c45..49798dd92 100644 --- a/src/components/settings/settings/EditSettingsForm.tsx +++ b/src/components/settings/settings/EditSettingsForm.tsx | |||
@@ -4,6 +4,7 @@ import { observer } from 'mobx-react'; | |||
4 | import prettyBytes from 'pretty-bytes'; | 4 | import prettyBytes from 'pretty-bytes'; |
5 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; | 5 | import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl'; |
6 | import { mdiGithub, mdiOpenInNew, mdiPowerPlug } from '@mdi/js'; | 6 | import { mdiGithub, mdiOpenInNew, mdiPowerPlug } from '@mdi/js'; |
7 | import { noop } from 'lodash'; | ||
7 | import Form from '../../../lib/Form'; | 8 | import Form from '../../../lib/Form'; |
8 | import Button from '../../ui/button'; | 9 | import Button from '../../ui/button'; |
9 | import Toggle from '../../ui/toggle'; | 10 | import Toggle from '../../ui/toggle'; |
@@ -343,7 +344,7 @@ class EditSettingsForm extends Component<IProps, IState> { | |||
343 | } | 344 | } |
344 | this.props.onSubmit(values); | 345 | this.props.onSubmit(values); |
345 | }, | 346 | }, |
346 | onError: () => {}, | 347 | onError: noop, |
347 | }); | 348 | }); |
348 | } | 349 | } |
349 | 350 | ||
diff --git a/src/components/settings/user/EditUserForm.tsx b/src/components/settings/user/EditUserForm.tsx index 3b604a79f..5a2a5a83e 100644 --- a/src/components/settings/user/EditUserForm.tsx +++ b/src/components/settings/user/EditUserForm.tsx | |||
@@ -53,7 +53,7 @@ class EditUserForm extends Component<IProps> { | |||
53 | const values = form.values(); | 53 | const values = form.values(); |
54 | this.props.onSubmit(values); | 54 | this.props.onSubmit(values); |
55 | }, | 55 | }, |
56 | onError: () => {}, | 56 | onError: noop, |
57 | }); | 57 | }); |
58 | } | 58 | } |
59 | 59 | ||