close menu button

This commit is contained in:
SpikeHD
2022-05-10 01:24:34 -07:00
parent c2693f3004
commit 2a283cfc8b
4 changed files with 37 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ class App extends React.Component<IProps, IState> {
/>
{
this.state.optionsOpen ? <Options /> : null
this.state.optionsOpen ? <Options closeFn={() => this.setState({ optionsOpen: !this.state.optionsOpen })}/> : null
}
<button onClick={TESTDOWNLOAD}>download file test</button>