diff --git a/components/Connect/index.tsx b/components/Connect/index.tsx index dc137ce..e9bbd30 100644 --- a/components/Connect/index.tsx +++ b/components/Connect/index.tsx @@ -33,6 +33,7 @@ export const ConnectPage = () => { const nameRef = useRef(null); const gidRef = useRef(null); + const [lobby, setLobby] = useState(gidRef?.current?.value ?? ""); const [sharedDeckId, setSharedDeckId] = useState(); // uses router props to load new decks @@ -84,6 +85,10 @@ export const ConnectPage = () => { { + setLobby(e.target.value); + if (e.target.value === "") setSharedDeckId(undefined); + }} placeholder="lobby name" bg="white" /> @@ -108,10 +113,16 @@ export const ConnectPage = () => { {sharedDeckId === undefined && ( setSharedDeckId("")} fontSize="2rem" alignSelf="center" justifySelf="center" + cursor="pointer" + _hover={{ + transform: "scale(1.2)", + }} /> )}