1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 22:20:06 +02:00

fix eslint raised issues

This commit is contained in:
Sérgio Ramos 2017-01-09 22:20:54 +00:00
parent 9152f7253a
commit acbd18a505
5 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,5 @@
const constants = require('../../shared/constants'); const constants = require('../../shared/constants');
const fns = require('../../shared/functions'); const fns = require('../../shared/functions');
const React = require('react');
const View = require('./view').raw; const View = require('./view').raw;
const Styled = require('styled-components'); const Styled = require('styled-components');

View File

@ -15,8 +15,7 @@ const {
} = fns; } = fns;
const { const {
default: styled, default: styled
css
} = Styled; } = Styled;
const paper = ` const paper = `

View File

@ -18,7 +18,7 @@ const {
const padding = (props) => !props.collapsed const padding = (props) => !props.collapsed
? `0 ${remcalc(18)}` ? `0 ${remcalc(18)}`
: `0`; : 0;
const color = (props) => props.fromHeader const color = (props) => props.fromHeader
? colors.brandPrimaryColor ? colors.brandPrimaryColor

View File

@ -34,6 +34,10 @@ const View = (props) => (
</StyledView> </StyledView>
); );
View.propTypes = {
children: React.PropTypes.node
};
module.exports = transferProps([ module.exports = transferProps([
'collapsed', 'collapsed',
'headed', 'headed',

View File

@ -661,7 +661,7 @@ storiesOf('ListItem', module)
</ListItemOutlet> </ListItemOutlet>
</ListItemView> </ListItemView>
</ListItem> </ListItem>
<ListItem stacked flat> <ListItem flat stacked>
<ListItemView> <ListItemView>
<ListItemMeta> <ListItemMeta>
<ListItemTitle>percona_database</ListItemTitle> <ListItemTitle>percona_database</ListItemTitle>