aboutsummaryrefslogtreecommitdiff
path: root/vnext/src
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src')
-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
-}
+};