fix choosing maps
This commit is contained in:
parent
f1dec16571
commit
1c5e14cd47
7 changed files with 75 additions and 18 deletions
|
|
@ -6,9 +6,10 @@ import Column from './components/Column.tsx';
|
|||
import Row from './components/Row.tsx';
|
||||
import Scoreboard from './Scoreboard.tsx';
|
||||
import Button from './components/Button.tsx';
|
||||
import MapDropDown from './MapDropDown.tsx';
|
||||
import './App.css';
|
||||
import {getRandomTheme, useStoredTheme} from './theme.ts';
|
||||
import {useState} from 'react';
|
||||
import {getRandomTheme, useStoredTheme} from "./theme.ts";
|
||||
import { useState } from 'react';
|
||||
|
||||
export default function App() {
|
||||
const [theme, setTheme] = useStoredTheme();
|
||||
|
|
@ -20,6 +21,7 @@ export default function App() {
|
|||
|
||||
<Row>
|
||||
<h1 className="flex-grow">CCCB-Tanks!</h1>
|
||||
<MapDropDown />
|
||||
<Button text="change colors" onClick={() => setTheme(_ => getRandomTheme())}/>
|
||||
<Button
|
||||
onClick={() => window.open('https://github.com/kaesaecracker/cccb-tanks-cs', '_blank')?.focus()}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue