Ver Fonte

type -> newType

visuddhinanda há 2 anos atrás
pai
commit
d77d03213a
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      dashboard/src/components/article/Article.tsx

+ 5 - 1
dashboard/src/components/article/Article.tsx

@@ -217,7 +217,11 @@ const ArticleWidget = ({
           channelId={channelId}
           courseId={courseId}
           mode={mode}
-          onArticleChange={(type: ArticleType, id: string, target: string) => {
+          onArticleChange={(
+            newType: ArticleType,
+            id: string,
+            target: string
+          ) => {
             if (typeof onArticleChange !== "undefined") {
               onArticleChange(type, id, target);
             }