diff --git a/cryptide_project/src/Pages/Lobbies.tsx b/cryptide_project/src/Pages/Lobbies.tsx index 6ab90c2..cb305af 100644 --- a/cryptide_project/src/Pages/Lobbies.tsx +++ b/cryptide_project/src/Pages/Lobbies.tsx @@ -36,7 +36,16 @@ function Lobbies() { const [searchTerm, setSearchTerm] = useState(''); - const [showAvailable, setShowAvailable] = useState(false); + const [showAvailable, setShowAvailable] = useState(true); + + const handleShowAllClick = () => { + setShowAvailable(false); + }; + + const handleShowAvailableClick = () => { + setShowAvailable(true); + }; + const filteredLobbies = lobbyData.filter((lobby) => lobby.roomNum.toLowerCase().includes(searchTerm.toLowerCase()) || @@ -83,13 +92,40 @@ function Lobbies() { onChange={(e) => setSearchTerm(e.target.value)} /> -
+ {/*
-
- +
*/} + +
+ + +