diff --git a/app/tournaments/page.js b/app/tournaments/page.js index aeb460a..3978910 100644 --- a/app/tournaments/page.js +++ b/app/tournaments/page.js @@ -3,106 +3,117 @@ import { useState } from "react"; import TournamentSection from "../../components/TournamentSection"; import { ListFilter } from "lucide-react"; +import { Button } from "../../@/components/ui/button"; +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuSeparator, + DropdownMenuTrigger, +} from "../../components/ui/dropdown-menu"; const TournamentPage = () => { - const [isFilterOpen, setIsFilterOpen] = useState(false); - const [filters, setFilters] = useState({ - entryFee: "", - mode: "", - status: "", + const [filters, setFilters] = useState({ + entryFee: "", + mode: "", + status: "", + }); + + const handleFilterChange = (e) => { + const { name, value } = e.target; + setFilters((prev) => ({ ...prev, [name]: value })); + }; + + const clearFilters = () => { + setFilters({ + entryFee: "", + mode: "", + status: "", }); + }; - const handleFilterChange = (e) => { - const { name, value } = e.target; - setFilters(prev => ({ ...prev, [name]: value })); - }; + return ( +