Просмотр исходного кода

:fire: ChannelInfoProps 去掉studio

visuddhinanda 3 лет назад
Родитель
Сommit
b6de42cf4d
1 измененных файлов с 5 добавлено и 7 удалено
  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";
 import { IStudioApiResponse, Role } from "./Auth";
 export type TChannelType =
 export type TChannelType =
   | "translation"
   | "translation"
@@ -8,16 +9,13 @@ export type TChannelType =
 export interface IChannelApiData {
 export interface IChannelApiData {
   id: string;
   id: string;
   name: string;
   name: string;
-  type: TChannelType;
+  type?: TChannelType;
 }
 }
 
 
 export interface ChannelInfoProps {
 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];
 export type IFinal = [number, boolean];