mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-16 16:52:39 +00:00
s/let/const/ to satisfy ESLint
This commit is contained in:
@@ -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