add "icons" to buttons

This commit is contained in:
Vinzenz Schroeter 2024-05-06 01:20:54 +02:00
parent dced0a3a5c
commit f481bb638a
3 changed files with 10 additions and 7 deletions

View file

@ -22,12 +22,12 @@ export default function App() {
<Row>
<h1 className="flex-grow">CCCB-Tanks!</h1>
<MapChooser theme={theme}/>
<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"/>
text="⌂ source"/>
{name !== '' &&
<Button onClick={() => setName(_ => '')} text="logout"/>}
<Button onClick={() => setName(_ => '')} text="logout"/>}
</Row>
{name || <JoinForm onDone={name => setName(_ => name)}/>}