aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth
diff options
context:
space:
mode:
authorLibravatar Muhamed <unknown>2022-11-07 01:11:48 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-11-08 17:25:27 +0530
commita1f5e31bfce97b4bbe492e24bf7d57ec2803c31a (patch)
tree881417b8917e8212fcf94547b92bba2701592745 /src/components/auth
parent6.2.1-nightly.42 [skip ci] (diff)
downloadferdium-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')
-rw-r--r--src/components/auth/Import.js5
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';
4import { defineMessages, injectIntl } from 'react-intl'; 4import { defineMessages, injectIntl } from 'react-intl';
5import { Link } from 'react-router-dom'; 5import { Link } from 'react-router-dom';
6import classnames from 'classnames'; 6import classnames from 'classnames';
7
8import Form from '../../lib/Form'; 7import Form from '../../lib/Form';
9import Toggle from '../ui/Toggle'; 8import Toggle from '../ui/toggle';
10import Button from '../ui/button'; 9import Button from '../ui/button';
11import { H1 } from '../ui/headline'; 10import { 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