Changed channel categories from DB-backed Category records to a backed PHP enum

This commit is contained in:
2026-05-18 06:55:03 +03:30
parent 295a408965
commit 59e4ae60da
20 changed files with 221 additions and 130 deletions

View File

@@ -1,7 +1,6 @@
export type Category = {
id: number;
name: string;
slug: string;
export type ChannelCategory = {
value: string;
label: string;
};
export type ChannelCard = {
@@ -15,7 +14,7 @@ export type ChannelCard = {
banner_url: string | null;
viewer_count: number;
followers_count: number;
category: Category | null;
category: ChannelCategory | null;
broadcast: {
id: number;
title: string;
@@ -38,7 +37,7 @@ export type ChannelDetail = {
is_live: boolean;
viewer_count: number;
followers_count: number;
category: Category | null;
category: ChannelCategory | null;
owner: {
id: number;
name: string;