Przeglądaj źródła

:fire: onAnthologySelect

visuddhinanda 2 lat temu
rodzic
commit
62c09ee041

+ 0 - 2
dashboard/src/components/article/ArticleView.tsx

@@ -31,7 +31,6 @@ export interface IWidgetArticleData {
   anthology?: IFirstAnthology;
   onEnd?: Function;
   onPathChange?: Function;
-  onAnthologySelect?: Function;
 }
 
 const ArticleViewWidget = ({
@@ -51,7 +50,6 @@ const ArticleViewWidget = ({
   onEnd,
   remains,
   onPathChange,
-  onAnthologySelect,
 }: IWidgetArticleData) => {
   const [currPath, setCurrPath] = useState(path);
 

+ 0 - 5
dashboard/src/components/article/TypeArticle.tsx

@@ -189,11 +189,6 @@ const TypeArticleWidget = ({
                 onArticleChange(newType, newArticleId, target);
               }
             }}
-            onAnthologySelect={(id: string) => {
-              if (typeof onAnthologySelect !== "undefined") {
-                onAnthologySelect(id);
-              }
-            }}
           />
           <Divider />
           {extra}