Skip to content

Commit

Permalink
simple reset via window refresh button
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean O'Donnell authored and Sean O'Donnell committed Oct 14, 2020
1 parent dbf96af commit 5d34c7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,11 @@
</div>
)
}
const onClickReset = () => window.location.reload();
return (<>
<Heading1 />
<p>The virus is not partisan. Ignoring science can have tragic consequences. Here are the facts.</p>
<SelectCasesOrDeaths /><SelectShowPer100k />
<SelectCasesOrDeaths /><SelectShowPer100k /><button onClick={onClickReset} style={{float: 'right'}} className='ui button'>Reset</button>
<StatesTable
showCasesOrDeaths={casesOrDeaths}
showPer100k={showPer100k} />
Expand Down

0 comments on commit 5d34c7d

Please sign in to comment.