Selaa lähdekoodia

type -> newType

visuddhinanda 2 vuotta sitten
vanhempi
sitoutus
d77d03213a
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  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);
             }