Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 175d300

Browse files
committed
Lint cleanup
1 parent 802ebfa commit 175d300

File tree

12 files changed

+21
-26
lines changed

12 files changed

+21
-26
lines changed

lib/Button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default class Button extends Component {
6868
}
6969
};
7070

71-
const buttonStyleMap = {
71+
const buttonStyleMap = {
7272
raised: {
7373
light: {
7474
normal: {

lib/Card/Actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component, StyleSheet, PropTypes, Image, View, Animated } from 'react-native';
1+
import React, { Component, StyleSheet, PropTypes, View } from 'react-native';
22

33
export default class Actions extends Component {
44

lib/Card/Body.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component, StyleSheet, PropTypes, Image, View, Animated } from 'react-native';
1+
import React, { Component, StyleSheet, PropTypes, View } from 'react-native';
22

33
import { COLOR } from '../config';
44

lib/Card/Media.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React, { Component, StyleSheet, PropTypes, Image, View } from 'react-nati
44
export default class Media extends Component {
55

66
static propTypes = {
7-
image: PropTypes.shape({type: PropTypes.oneOf([Image])}).isRequired,
7+
image: PropTypes.shape({ type: PropTypes.oneOf([Image]) }).isRequired,
88
height: PropTypes.number,
99
overlay: PropTypes.bool,
1010
children: PropTypes.node
@@ -23,7 +23,7 @@ export default class Media extends Component {
2323
{React.cloneElement(image, {
2424
style: [styles.media, { height }]
2525
})}
26-
{ children &&
26+
{children &&
2727
<View style={[styles.content, overlay && { backgroundColor: 'rgba(0,0,0,.35)' }]}>
2828
{children}
2929
</View>

lib/Drawer/Header.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import React, { Component, PropTypes, View, Image } from 'react-native';
2-
import { getColor } from '../helpers';
32

43
export default class Header extends Component {
54

65
static propTypes = {
7-
image: PropTypes.shape({type: PropTypes.oneOf([Image])}),
6+
image: PropTypes.shape({ type: PropTypes.oneOf([Image]) }),
87
backgroundColor: PropTypes.string,
98
height: PropTypes.number,
109
children: PropTypes.node
@@ -36,4 +35,4 @@ const styles = {
3635
header: {
3736
paddingHorizontal: 16
3837
}
39-
}
38+
};

lib/Drawer/Item.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import React, { Component, PropTypes, View, Text, Image, TouchableHighlight } from 'react-native';
1+
import React, { Component, PropTypes, View, Text, TouchableHighlight } from 'react-native';
22
import Icon from '../Icon';
33
import { TYPO } from '../config';
4-
import { getColor } from '../helpers';
54

65
export default class Item extends Component {
76

@@ -19,23 +18,23 @@ export default class Item extends Component {
1918
};
2019

2120
render() {
22-
const { icon, value, label, onPress, active, disabled } = this.props;
21+
const { icon, value, onPress } = this.props;
2322

2423
return (
2524
<TouchableHighlight
2625
onPress={onPress}
27-
underlayColor='#e8e8e8'
26+
underlayColor={'#e8e8e8'}
2827
style={styles.touchable}
2928
>
3029
<View style={styles.item}>
3130
<Icon
3231
name={icon}
33-
color='rgba(0,0,0,.54)'
32+
color={'rgba(0,0,0,.54)'}
3433
size={22}
3534
style={styles.icon}
3635
/>
3736
<View style={styles.value}>
38-
<Text style={[TYPO.paperFontBody2, { color: 'rgba(0,0,0,.87)'}]}>
37+
<Text style={[TYPO.paperFontBody2, { color: 'rgba(0,0,0,.87)' }]}>
3938
{value}
4039
</Text>
4140

lib/Drawer/Subheader.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import React, { Component, PropTypes, View, Text, Image, TouchableHighlight } from 'react-native';
2-
import Icon from '../Icon';
1+
import React, { Component, PropTypes, View, Text } from 'react-native';
32
import { TYPO } from '../config';
4-
import { getColor } from '../helpers';
53

64
export default class Subheader extends Component {
75

lib/Drawer/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component, PropTypes, ScrollView } from 'react-native';
2-
import { TYPO, PRIMARY, THEME_NAME, PRIMARY_COLORS } from '../config';
2+
import { THEME_NAME, PRIMARY_COLORS } from '../config';
33
import { getColor } from '../helpers';
44

55
import Header from './Header';
@@ -12,7 +12,7 @@ export default class Drawer extends Component {
1212
theme: PropTypes.oneOf(THEME_NAME),
1313
primary: PropTypes.oneOf(PRIMARY_COLORS),
1414
overrides: PropTypes.shape({
15-
backgroundColor: PropTypes.string,
15+
backgroundColor: PropTypes.string
1616
}),
1717
children: PropTypes.node.isRequired
1818
};
@@ -29,7 +29,7 @@ export default class Drawer extends Component {
2929
static Subheader = Subheader;
3030

3131
render() {
32-
const { theme, primary, overrides, children } = this.props;
32+
const { theme, overrides, children } = this.props;
3333

3434
const backgroundColorMap = {
3535
light: '#ffffff',

lib/Icon.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export default class Icon extends Component {
2424
name={name}
2525
size={size}
2626
color={getColor(color)}
27-
style={style} />
27+
style={style}
28+
/>
2829
);
2930
}
3031
}

lib/IconButton.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { Component, PropTypes, View, Text } from 'react-native';
22
import { getColor } from './helpers';
3-
import Icon from './Icon';
43
import Ripple from './Ripple';
54

65
export default class IconButton extends Component {
@@ -57,6 +56,6 @@ const styles = {
5756
paddingHorizontal: 3
5857
},
5958
counterText: {
60-
fontSize: 8,
59+
fontSize: 8
6160
}
62-
}
61+
};

0 commit comments

Comments
 (0)