|
5 | 5 | import * as React from 'react'
|
6 | 6 |
|
7 | 7 | // Components
|
8 |
| -import { Card, Button } from 'brave-ui' |
| 8 | +import { Button } from 'brave-ui' |
9 | 9 | import SwitchButton from 'brave-ui/old/switchButton'
|
10 | 10 | import Table, { Cell, Row } from 'brave-ui/components/dataTables/table'
|
11 | 11 |
|
12 | 12 | // Feature-specific components
|
13 | 13 | import {
|
14 | 14 | Grid,
|
15 |
| - FlexColumn, |
16 | 15 | SwitchLabel,
|
17 |
| - Label, |
18 | 16 | Paragraph,
|
19 | 17 | SectionBlock,
|
20 | 18 | SubTitle
|
@@ -102,10 +100,6 @@ class SyncEnabledContent extends React.PureComponent<SyncEnabledContentProps, Sy
|
102 | 100 | this.props.actions.onSyncReset()
|
103 | 101 | }
|
104 | 102 |
|
105 |
| - onToggleSyncThisDevice = (event: React.ChangeEvent<HTMLInputElement>) => { |
106 |
| - this.props.actions.onToggleSyncThisDevice(event.target.checked) |
107 |
| - } |
108 |
| - |
109 | 103 | onSyncBookmarks = (event: React.ChangeEvent<HTMLInputElement>) => {
|
110 | 104 | this.props.actions.onSyncBookmarks(event.target.checked)
|
111 | 105 | }
|
@@ -139,23 +133,6 @@ class SyncEnabledContent extends React.PureComponent<SyncEnabledContentProps, Sy
|
139 | 133 | ? <ResetSyncModal actions={actions} onClose={this.resetSyncModal} />
|
140 | 134 | : null
|
141 | 135 | }
|
142 |
| - <Card> |
143 |
| - <Grid columns='1fr 1fr'> |
144 |
| - <FlexColumn items='center'> |
145 |
| - <SwitchButton |
146 |
| - id='syncThisDevice' |
147 |
| - size='large' |
148 |
| - checked={syncData.shouldSyncThisDevice} |
149 |
| - onChange={this.onToggleSyncThisDevice} |
150 |
| - /> |
151 |
| - <SwitchLabel htmlFor='syncThisDevice'>{getLocale('syncThisDevice')}</SwitchLabel> |
152 |
| - </FlexColumn> |
153 |
| - <FlexColumn direction='column'> |
154 |
| - <Label>{getLocale('deviceName')}</Label> |
155 |
| - <Paragraph>{syncData.thisDeviceName}</Paragraph> |
156 |
| - </FlexColumn> |
157 |
| - </Grid> |
158 |
| - </Card> |
159 | 136 | <SectionBlock>
|
160 | 137 | <SubTitle level={2}>{getLocale('devices')}</SubTitle>
|
161 | 138 | <Table header={this.header} rows={this.getRows(syncData.devices)}>
|
|
0 commit comments