mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-30 04:32:38 +00:00
s/let/const/ to satisfy ESLint
This commit is contained in:
@@ -58,7 +58,7 @@ const BrewRenderer = createClass({
|
||||
},
|
||||
|
||||
handleScroll : function(e){
|
||||
let target = e.target;
|
||||
const target = e.target;
|
||||
this.setState((prevState)=>({
|
||||
viewablePageNumber : Math.floor(target.scrollTop / target.scrollHeight * prevState.pages.length)
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user