This commit is contained in:
2025-11-28 08:22:47 -05:00
parent 0471810118
commit 4d492b5c7c
24 changed files with 114 additions and 7 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ type ViewMode = "card" | "list";
export default function CategoryPage() {
const params = useParams();
const categoryId = params.categoryId as CategoryId;
const [viewMode, setViewMode] = useState<ViewMode>("card");
const [viewMode, setViewMode] = useState<ViewMode>("list");
const category = useMemo(
() => CATEGORIES.find((c) => c.id === categoryId),