Merge remote-tracking branch 'origin/main' into tobi-dev
This commit is contained in:
commit
e80cb2469a
18 changed files with 764 additions and 205 deletions
|
@ -6,9 +6,10 @@ import { createStation } from "../utils/StationsCreate";
|
|||
function CreateStation() {
|
||||
const [name, setName] = useState("");
|
||||
const [description, setDescription] = useState("");
|
||||
const [joinCode, setJoinCode] = useState("");
|
||||
|
||||
const handleCreateStation = () => {
|
||||
createStation(name, description);
|
||||
setJoinCode(createStation(name, description));
|
||||
};
|
||||
|
||||
return (
|
||||
|
@ -49,6 +50,8 @@ function CreateStation() {
|
|||
>
|
||||
Create Radio Station
|
||||
</button>
|
||||
|
||||
<p>your joinCode: {joinCode}</p>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue