Make show more button clickable as well, in case auto refresh doesnt work

This commit is contained in:
Marco van Dijk 2022-03-11 16:11:21 +01:00
parent f3ff42d8ed
commit ca728452ce

View File

@ -214,10 +214,12 @@ const EventViewer = (obj) => {
} else { } else {
showMoreButton = showMoreButton =
<div className="stroke" style={{ width: '100%', padding: 0, margin: 0, marginBottom: '2em', marginTop: '2em' }}> <div className="stroke" style={{ width: '100%', padding: 0, margin: 0, marginBottom: '2em', marginTop: '2em' }}>
<div className="strokeSmollLeft" style={{ borderRadius: "1.2em", backgroundColor: greyColour, padding: 0, margin: 0, width: '100%' }}> <div className="strokeSmollLeft" style={{ borderRadius: "1.2em", padding: 0, margin: 0, width: '100%' }}>
<p className="row withWrap" style={{ maxWidth: '600px' }}> <button className="row nonHomeButton" style={{ backgroundColor: greyColour }} onClick={() => {
🔄 Scroll to bottom for more obj.setMaxAmount(obj.maxAmount + defaultIncrementMaxShown);;
</p> }}>
<h3>🔄 Show More</h3>
</button>
</div> </div>
</div> </div>
} }