simplify useStoredTheme

This commit is contained in:
Vinzenz Schroeter 2024-04-14 15:16:32 +02:00
parent 16d3cd1545
commit 35256ba88d
3 changed files with 37 additions and 24 deletions

View file

@ -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'/>