Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.

Commit 4d6c38d

Browse files
Fix(): fixes eslint issues
1 parent 13787b5 commit 4d6c38d

File tree

3 files changed

+30
-32
lines changed

3 files changed

+30
-32
lines changed

src/basic/Picker.ios.js

+30-30
Original file line numberDiff line numberDiff line change
@@ -211,36 +211,36 @@ class PickerNB extends Component {
211211
<Container style={this.props.modalStyle}>
212212
{this.renderHeader()}
213213
<Content>
214-
<FlatList
215-
testID={this.props.testID}
216-
data={this.state.dataSource}
217-
keyExtractor={(item, index) => String(index)}
218-
renderItem={({ item }) => (
219-
<ListItem
220-
selected={item.props.value === this.props.selectedValue}
221-
button
222-
style={this.props.itemStyle}
223-
onPress={() => {
224-
this._setModalVisible(false);
225-
this.props.onValueChange(item.props.value, item.key);
226-
this.setState({ current: item.props.label });
227-
}}
228-
>
229-
<Left>
230-
<Text style={this.props.itemTextStyle}>
231-
{item.props.label}
232-
</Text>
233-
</Left>
234-
<Right>
235-
{item.props.value === this.props.selectedValue ? (
236-
<Radio selected />
237-
) : (
238-
<Radio selected={false} />
239-
)}
240-
</Right>
241-
</ListItem>
242-
)}
243-
/>
214+
<FlatList
215+
testID={this.props.testID}
216+
data={this.state.dataSource}
217+
keyExtractor={(item, index) => String(index)}
218+
renderItem={({ item }) => (
219+
<ListItem
220+
selected={item.props.value === this.props.selectedValue}
221+
button
222+
style={this.props.itemStyle}
223+
onPress={() => {
224+
this._setModalVisible(false);
225+
this.props.onValueChange(item.props.value, item.key);
226+
this.setState({ current: item.props.label });
227+
}}
228+
>
229+
<Left>
230+
<Text style={this.props.itemTextStyle}>
231+
{item.props.label}
232+
</Text>
233+
</Left>
234+
<Right>
235+
{item.props.value === this.props.selectedValue ? (
236+
<Radio selected />
237+
) : (
238+
<Radio selected={false} />
239+
)}
240+
</Right>
241+
</ListItem>
242+
)}
243+
/>
244244
</Content>
245245
</Container>
246246
</Modal>

src/basic/ToastContainer.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-disable class-methods-use-this */
22
import React, { Component } from 'react';
3-
import PropTypes from 'prop-types';
43
import {
54
Keyboard,
65
Platform,

src/theme/components/Badge.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// @flow
22

33
import variable from './../variables/platform';
4-
import { PLATFORM } from './../variables/commonColor';
54

65
export default (variables /* : * */ = variable) => {
76
const badgeTheme = {

0 commit comments

Comments
 (0)