Added login to RadioTower
This commit is contained in:
parent
fb355414ab
commit
50f9d7ae4f
7 changed files with 67 additions and 47 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 (
|
||||
|
@ -28,6 +29,8 @@ function CreateStation() {
|
|||
>
|
||||
Create Radio Station
|
||||
</button>
|
||||
|
||||
<p>your joinCode: {joinCode}</p>
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue