Browse Source

type -> newType

visuddhinanda 2 năm trước cách đây
mục cha
commit
d77d03213a
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  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);
             }