mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 18:47:11 +00:00
s/let/const/ to satisfy ESLint
This commit is contained in:
1 parent
ea81bb5ebc
commit
3532d75365
1 file changed
+1
-1
@@ -58,7 +58,7 @@ const BrewRenderer = createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
handleScroll : function(e){
|
handleScroll : function(e){
|
||||||
let target = e.target;
|
const target = e.target;
|
||||||
this.setState((prevState)=>({
|
this.setState((prevState)=>({
|
||||||
viewablePageNumber : Math.floor(target.scrollTop / target.scrollHeight * prevState.pages.length)
|
viewablePageNumber : Math.floor(target.scrollTop / target.scrollHeight * prevState.pages.length)
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in new issue
Block a user