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

Commit

Permalink
Lint cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehesp committed Dec 21, 2015
1 parent 802ebfa commit 175d300
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 26 deletions.
2 changes: 1 addition & 1 deletion lib/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class Button extends Component {
}
};

const buttonStyleMap = {
const buttonStyleMap = {
raised: {
light: {
normal: {
Expand Down
2 changes: 1 addition & 1 deletion lib/Card/Actions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, StyleSheet, PropTypes, Image, View, Animated } from 'react-native';
import React, { Component, StyleSheet, PropTypes, View } from 'react-native';

export default class Actions extends Component {

Expand Down
2 changes: 1 addition & 1 deletion lib/Card/Body.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, StyleSheet, PropTypes, Image, View, Animated } from 'react-native';
import React, { Component, StyleSheet, PropTypes, View } from 'react-native';

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

Expand Down
4 changes: 2 additions & 2 deletions lib/Card/Media.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React, { Component, StyleSheet, PropTypes, Image, View } from 'react-nati
export default class Media extends Component {

static propTypes = {
image: PropTypes.shape({type: PropTypes.oneOf([Image])}).isRequired,
image: PropTypes.shape({ type: PropTypes.oneOf([Image]) }).isRequired,
height: PropTypes.number,
overlay: PropTypes.bool,
children: PropTypes.node
Expand All @@ -23,7 +23,7 @@ export default class Media extends Component {
{React.cloneElement(image, {
style: [styles.media, { height }]
})}
{ children &&
{children &&
<View style={[styles.content, overlay && { backgroundColor: 'rgba(0,0,0,.35)' }]}>
{children}
</View>
Expand Down
5 changes: 2 additions & 3 deletions lib/Drawer/Header.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React, { Component, PropTypes, View, Image } from 'react-native';
import { getColor } from '../helpers';

export default class Header extends Component {

static propTypes = {
image: PropTypes.shape({type: PropTypes.oneOf([Image])}),
image: PropTypes.shape({ type: PropTypes.oneOf([Image]) }),
backgroundColor: PropTypes.string,
height: PropTypes.number,
children: PropTypes.node
Expand Down Expand Up @@ -36,4 +35,4 @@ const styles = {
header: {
paddingHorizontal: 16
}
}
};
11 changes: 5 additions & 6 deletions lib/Drawer/Item.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { Component, PropTypes, View, Text, Image, TouchableHighlight } from 'react-native';
import React, { Component, PropTypes, View, Text, TouchableHighlight } from 'react-native';
import Icon from '../Icon';
import { TYPO } from '../config';
import { getColor } from '../helpers';

export default class Item extends Component {

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

render() {
const { icon, value, label, onPress, active, disabled } = this.props;
const { icon, value, onPress } = this.props;

return (
<TouchableHighlight
onPress={onPress}
underlayColor='#e8e8e8'
underlayColor={'#e8e8e8'}
style={styles.touchable}
>
<View style={styles.item}>
<Icon
name={icon}
color='rgba(0,0,0,.54)'
color={'rgba(0,0,0,.54)'}
size={22}
style={styles.icon}
/>
<View style={styles.value}>
<Text style={[TYPO.paperFontBody2, { color: 'rgba(0,0,0,.87)'}]}>
<Text style={[TYPO.paperFontBody2, { color: 'rgba(0,0,0,.87)' }]}>
{value}
</Text>

Expand Down
4 changes: 1 addition & 3 deletions lib/Drawer/Subheader.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React, { Component, PropTypes, View, Text, Image, TouchableHighlight } from 'react-native';
import Icon from '../Icon';
import React, { Component, PropTypes, View, Text } from 'react-native';
import { TYPO } from '../config';
import { getColor } from '../helpers';

export default class Subheader extends Component {

Expand Down
6 changes: 3 additions & 3 deletions lib/Drawer/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component, PropTypes, ScrollView } from 'react-native';
import { TYPO, PRIMARY, THEME_NAME, PRIMARY_COLORS } from '../config';
import { THEME_NAME, PRIMARY_COLORS } from '../config';
import { getColor } from '../helpers';

import Header from './Header';
Expand All @@ -12,7 +12,7 @@ export default class Drawer extends Component {
theme: PropTypes.oneOf(THEME_NAME),
primary: PropTypes.oneOf(PRIMARY_COLORS),
overrides: PropTypes.shape({
backgroundColor: PropTypes.string,
backgroundColor: PropTypes.string
}),
children: PropTypes.node.isRequired
};
Expand All @@ -29,7 +29,7 @@ export default class Drawer extends Component {
static Subheader = Subheader;

render() {
const { theme, primary, overrides, children } = this.props;
const { theme, overrides, children } = this.props;

const backgroundColorMap = {
light: '#ffffff',
Expand Down
3 changes: 2 additions & 1 deletion lib/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export default class Icon extends Component {
name={name}
size={size}
color={getColor(color)}
style={style} />
style={style}
/>
);
}
}
5 changes: 2 additions & 3 deletions lib/IconButton.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { Component, PropTypes, View, Text } from 'react-native';
import { getColor } from './helpers';
import Icon from './Icon';
import Ripple from './Ripple';

export default class IconButton extends Component {
Expand Down Expand Up @@ -57,6 +56,6 @@ const styles = {
paddingHorizontal: 3
},
counterText: {
fontSize: 8,
fontSize: 8
}
}
};
2 changes: 1 addition & 1 deletion lib/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class List extends Component {

return (
<Ripple
color='rgba(153,153,153,.4)'
color={'rgba(153,153,153,.4)'}
rippleOpacity={1}
onPress={onPress}
>
Expand Down
1 change: 0 additions & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { StyleSheet } from 'react-native';
import { typography, color } from 'react-native-material-design-styles';

/**
Expand Down

0 comments on commit 175d300

Please sign in to comment.