Przeglądaj źródła

:fire: ChannelInfoProps 去掉studio

visuddhinanda 3 lat temu
rodzic
commit
b6de42cf4d
1 zmienionych plików z 5 dodań i 7 usunięć
  1. 5 7
      dashboard/src/components/api/Channel.ts

+ 5 - 7
dashboard/src/components/api/Channel.ts

@@ -1,3 +1,4 @@
+import { IStudio } from "../auth/StudioName";
 import { IStudioApiResponse, Role } from "./Auth";
 export type TChannelType =
   | "translation"
@@ -8,16 +9,13 @@ export type TChannelType =
 export interface IChannelApiData {
   id: string;
   name: string;
-  type: TChannelType;
+  type?: TChannelType;
 }
 
 export interface ChannelInfoProps {
-  channelName: string;
-  channelId: string;
-  channelType: string;
-  studioName: string;
-  studioId: string;
-  studioType: string;
+  channel: IChannelApiData;
+  studio: IStudio;
+  count?: number;
 }
 
 export type IFinal = [number, boolean];