Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JediWattson committed Jul 20, 2022
1 parent e38f4a8 commit 656d0da
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/components/AttachmentCarousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const propTypes = {
onArrowPress: PropTypes.func,

/** Hides arrows if set to false */
showArrows: PropTypes.bool,
};

const defaultProps = {
Expand Down Expand Up @@ -108,9 +109,9 @@ class AttachmentCarousel extends React.Component {
}

render() {
const styling = [styles.attachmentModalArrowsContainer]
const styling = [styles.attachmentModalArrowsContainer];
if (!this.props.showArrows) {
styling.push(styles.attachmentModalArrowsHidden)
styling.push(styles.attachmentModalArrowsHidden);
}

return (
Expand Down
6 changes: 3 additions & 3 deletions src/components/AttachmentModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class AttachmentModal extends PureComponent {
* @param {Boolean} showArrows
*/
onShowArrow(showArrows) {
this.setState({ showArrows })
this.setState({showArrows});
}

/**
Expand Down Expand Up @@ -220,8 +220,8 @@ class AttachmentModal extends PureComponent {
/>
) : ''}
/>
<View
style={attachmentViewStyles}
<View
style={attachmentViewStyles}
onMouseEnter={() => this.onShowArrow(true)}
onMouseLeave={() => this.onShowArrow(false)}
>
Expand Down
2 changes: 1 addition & 1 deletion src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2022,7 +2022,7 @@ const styles = {
},

attachmentModalArrowsHidden: {
opacity: 0
opacity: 0,
},

detailsPageSectionVersion: {
Expand Down

0 comments on commit 656d0da

Please sign in to comment.