Skip to content

Commit

Permalink
[Code style] Add semi-colons (getredash#3755)
Browse files Browse the repository at this point in the history
  • Loading branch information
taminif authored and harveyrendell committed Nov 14, 2019
1 parent b6892cf commit 524879e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/app/components/HelpTrigger.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class HelpTrigger extends React.Component {
type: PropTypes.oneOf(Object.keys(TYPES)).isRequired,
className: PropTypes.string,
children: PropTypes.node,
}
};

static defaultProps = {
className: null,
Expand Down Expand Up @@ -99,12 +99,12 @@ export class HelpTrigger extends React.Component {
this.iframeLoadingTimeout = setTimeout(() => {
this.setState({ error: url, loading: false });
}, IFRAME_TIMEOUT); // safety
}
};

onIframeLoaded = () => {
this.setState({ loading: false });
clearTimeout(this.iframeLoadingTimeout);
}
};

openDrawer = () => {
this.setState({ visible: true });
Expand All @@ -113,11 +113,11 @@ export class HelpTrigger extends React.Component {

// wait for drawer animation to complete so there's no animation jank
setTimeout(() => this.loadIframe(url), 300);
}
};

closeDrawer = () => {
this.setState({ visible: false });
}
};

render() {
const [, tooltip] = TYPES[this.props.type];
Expand Down

0 comments on commit 524879e

Please sign in to comment.