Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
neptunian committed Aug 2, 2018
1 parent 6d5eb3e commit 3f5b3b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Gallery.propTypes = {
Gallery.defaultProps = {
columns: 3,
margin: 2,
direction: 'row'
direction: 'row',
};

export default Gallery;
12 changes: 6 additions & 6 deletions src/Photo.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ Photo.propTypes = {
onClick: PropTypes.func,
photo: photoPropType.isRequired,
margin: PropTypes.number,
top: (props) => {
if (props.direction === 'column' && typeof props.top !== 'number'){
return new Error('top is a required number when direction is set to `column`')
top: props => {
if (props.direction === 'column' && typeof props.top !== 'number') {
return new Error('top is a required number when direction is set to `column`');
}
},
left: (props) => {
if (props.direction === 'column' && typeof props.left !== 'number'){
return new Error('left is a required number when direction is set to `column`')
left: props => {
if (props.direction === 'column' && typeof props.left !== 'number') {
return new Error('left is a required number when direction is set to `column`');
}
},
direction: PropTypes.string,
Expand Down

0 comments on commit 3f5b3b6

Please sign in to comment.