aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-30 19:15:54 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit29c872a86a14e0f16b1cb114c514ef624d2e63bf (patch)
tree99280f30796931cc4484a8b7d2e82d956f4ae70b /vnext
parenta35213803066df368658d6dfa8451ee9b1ab97f3 (diff)
Fix lint warnings
Diffstat (limited to 'vnext')
-rw-r--r--vnext/src/components/Header.js8
-rw-r--r--vnext/src/components/Users.js2
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
-}
+};