0
0
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:
Rae Che
2018-08-22 11:19:59 +01:00
committed by Trevor Buckner
parent ea81bb5ebc
commit 3532d75365

View File

@@ -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)
}));