updated format and lint scripts and applied them

This commit is contained in:
JJ Kasper
2018-06-01 16:52:12 -05:00
parent 53ac8a6793
commit 017a9993ee
58 changed files with 1711 additions and 1568 deletions

View File

@@ -1,18 +1,16 @@
const PaddedRow = ({ children, amount, vCenter }) => {
amount = amount || 20;
const PadItem = () => (
<div className={'column column-' + amount + ' nomob'} />
);
let rowProps = {className: 'row'};
if(vCenter) rowProps = {className: 'row v-center'};
else rowProps = {...rowProps, style: {paddingTop: amount}};
amount = amount || 20
const PadItem = () => <div className={'column column-' + amount + ' nomob'} />
let rowProps = { className: 'row' }
if (vCenter) rowProps = { className: 'row v-center' }
else rowProps = { ...rowProps, style: { paddingTop: amount } }
return (
<div {...rowProps}>
<PadItem />
<div className='column'>{ children }</div>
<div className="column">{children}</div>
<PadItem />
</div>
);
};
export default PaddedRow;
)
}
export default PaddedRow