fixed url

This commit is contained in:
2023-03-24 18:51:14 +01:00
parent 8ce76902a5
commit 2eb05585f1
4 changed files with 12 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ const ROOM_URL = `http://${process.env.REACT_APP_API_URL}/room`;
const MainLobby = () => {
useTitle('MauLobby');
useTitle('Mau-Mau Lobby');
const handleCreateRoom = () => {
fetch(ROOM_URL, {
@@ -17,12 +17,12 @@ const MainLobby = () => {
}
const gotoRooms = () => {
window.location.href = '/rooms';
window.location.host = '/rooms';
}
return (
<div className={"main-lobby"}>
<h1 className={"main-lobby__title mau"}>MauMau</h1>
<h1 className={"main-lobby__title mau"}>Mau-Mau</h1>
<div className={"main-lobby__container"}>
<div className={"main-lobby__container-button clickable"} onClick={handleCreateRoom}>
<h2 className={"mau"}>Host Game</h2>