Added login to RadioTower

This commit is contained in:
Noah Knapp 2025-08-02 06:22:55 +02:00
parent fb355414ab
commit 50f9d7ae4f
7 changed files with 67 additions and 47 deletions

View file

@ -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 (
@ -28,6 +29,8 @@ function CreateStation() {
>
Create Radio Station
</button>
<p>your joinCode: {joinCode}</p>
</main>
</div>
);