diff options
author | Vitaly Takmazov | 2018-10-30 19:15:54 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | 29c872a86a14e0f16b1cb114c514ef624d2e63bf (patch) | |
tree | 99280f30796931cc4484a8b7d2e82d956f4ae70b /vnext/src/components | |
parent | a35213803066df368658d6dfa8451ee9b1ab97f3 (diff) |
Fix lint warnings
Diffstat (limited to 'vnext/src/components')
-rw-r--r-- | vnext/src/components/Header.js | 8 | ||||
-rw-r--r-- | vnext/src/components/Users.js | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/vnext/src/components/Header.js b/vnext/src/components/Header.js index 68375d48..69477c16 100644 --- a/vnext/src/components/Header.js +++ b/vnext/src/components/Header.js @@ -14,10 +14,10 @@ export default class Header extends React.Component { this.wScrollDiff = 0; this.header = React.createRef(); } - componentDidMount() { - window.addEventListener('scroll', () => (!window.requestAnimationFrame) - ? this.throttle(250, this.updateHeader) - : window.requestAnimationFrame(this.updateHeader), false); + componentDidMount() { + window.addEventListener('scroll', () => (!window.requestAnimationFrame) + ? this.throttle(250, this.updateHeader) + : window.requestAnimationFrame(this.updateHeader), false); } throttle(delay, fn) { var last, deferTimer; diff --git a/vnext/src/components/Users.js b/vnext/src/components/Users.js index 4201e1e0..c0da3748 100644 --- a/vnext/src/components/Users.js +++ b/vnext/src/components/Users.js @@ -38,4 +38,4 @@ Readers.propTypes = { Users.propTypes = { data: PropTypes.arrayOf(UserType).isRequired -} +}; |