fix eslint raised issues
This commit is contained in:
parent
9152f7253a
commit
acbd18a505
@ -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');
|
||||||
|
|
||||||
|
@ -15,8 +15,7 @@ const {
|
|||||||
} = fns;
|
} = fns;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
default: styled,
|
default: styled
|
||||||
css
|
|
||||||
} = Styled;
|
} = Styled;
|
||||||
|
|
||||||
const paper = `
|
const paper = `
|
||||||
|
@ -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
|
||||||
|
@ -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',
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user