simplify useStoredTheme
This commit is contained in:
parent
16d3cd1545
commit
35256ba88d
3 changed files with 37 additions and 24 deletions
|
|
@ -34,7 +34,7 @@ export default function App() {
|
|||
return <Column className='flex-grow'>
|
||||
<Row>
|
||||
<h1 className='flex-grow'>CCCB-Tanks!</h1>
|
||||
<Button text='change colors' onClick={() => setTheme(getRandomTheme())} />
|
||||
<Button text='change colors' onClick={() => setTheme(_ => getRandomTheme())}/>
|
||||
<Button
|
||||
onClick={() => window.open('https://github.com/kaesaecracker/cccb-tanks-cs', '_blank')?.focus()}
|
||||
text='GitHub'/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue