diff options
author | 2022-11-07 01:11:48 +0530 | |
---|---|---|
committer | 2022-11-08 17:25:27 +0530 | |
commit | a1f5e31bfce97b4bbe492e24bf7d57ec2803c31a (patch) | |
tree | 881417b8917e8212fcf94547b92bba2701592745 /src/components/auth/Import.js | |
parent | 6.2.1-nightly.42 [skip ci] (diff) | |
download | ferdium-app-a1f5e31bfce97b4bbe492e24bf7d57ec2803c31a.tar.gz ferdium-app-a1f5e31bfce97b4bbe492e24bf7d57ec2803c31a.tar.zst ferdium-app-a1f5e31bfce97b4bbe492e24bf7d57ec2803c31a.zip |
refactor: remove toggle component's duplicate
Diffstat (limited to 'src/components/auth/Import.js')
-rw-r--r-- | src/components/auth/Import.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/auth/Import.js b/src/components/auth/Import.js index 41b887974..b897116e2 100644 --- a/src/components/auth/Import.js +++ b/src/components/auth/Import.js | |||
@@ -4,9 +4,8 @@ import { observer, PropTypes as MobxPropTypes } from 'mobx-react'; | |||
4 | import { defineMessages, injectIntl } from 'react-intl'; | 4 | import { defineMessages, injectIntl } from 'react-intl'; |
5 | import { Link } from 'react-router-dom'; | 5 | import { Link } from 'react-router-dom'; |
6 | import classnames from 'classnames'; | 6 | import classnames from 'classnames'; |
7 | |||
8 | import Form from '../../lib/Form'; | 7 | import Form from '../../lib/Form'; |
9 | import Toggle from '../ui/Toggle'; | 8 | import Toggle from '../ui/toggle'; |
10 | import Button from '../ui/button'; | 9 | import Button from '../ui/button'; |
11 | import { H1 } from '../ui/headline'; | 10 | import { H1 } from '../ui/headline'; |
12 | 11 | ||
@@ -97,7 +96,7 @@ class Import extends Component { | |||
97 | {this.form.$('import').map((service, i) => ( | 96 | {this.form.$('import').map((service, i) => ( |
98 | <tr key={service.id} className="service-table__row"> | 97 | <tr key={service.id} className="service-table__row"> |
99 | <td className="service-table__toggle"> | 98 | <td className="service-table__toggle"> |
100 | <Toggle field={service.$('add')} showLabel={false} /> | 99 | <Toggle {...service.$('add').bind()} showLabel={false} /> |
101 | </td> | 100 | </td> |
102 | <td className="service-table__column-icon"> | 101 | <td className="service-table__column-icon"> |
103 | <img | 102 | <img |