visuddhinanda 3 лет назад
Родитель
Сommit
df10af7bc1
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      dashboard/src/pages/studio/channel/list.tsx

+ 3 - 3
dashboard/src/pages/studio/channel/list.tsx

@@ -47,7 +47,7 @@ export const renderBadge = (count: number, active = false) => {
   );
   );
 };
 };
 
 
-interface IItem {
+interface IChannelItem {
   id: number;
   id: number;
   uid: string;
   uid: string;
   title: string;
   title: string;
@@ -121,7 +121,7 @@ const Widget = () => {
 
 
   return (
   return (
     <>
     <>
-      <ProTable<IItem>
+      <ProTable<IChannelItem>
         actionRef={ref}
         actionRef={ref}
         columns={[
         columns={[
           {
           {
@@ -392,7 +392,7 @@ const Widget = () => {
           }
           }
           console.log("url", url);
           console.log("url", url);
           const res: IApiResponseChannelList = await get(url);
           const res: IApiResponseChannelList = await get(url);
-          const items: IItem[] = res.data.rows.map((item, id) => {
+          const items: IChannelItem[] = res.data.rows.map((item, id) => {
             const date = new Date(item.created_at);
             const date = new Date(item.created_at);
             return {
             return {
               id: id,
               id: id,