feat: add category

This commit is contained in:
2026-06-11 10:28:19 +03:30
parent bd71076c72
commit 3cc1d1385c
4 changed files with 11 additions and 30 deletions
@@ -45,7 +45,7 @@ const TYPE_LABELS: Record<CategoryType, string> = Object.fromEntries(
// The icon is a direct image-file field on the category (not an image_id ref).
const ICON_KEYS = ["icon", "icon_url"];
export default function MediaCategoriesPage() {
export default function CategoriesPage() {
const [typeFilter, setTypeFilter] = useState<CategoryType>("media");
const { data, loading, error, reload } = useList<Category>("/categories", {
type: typeFilter,