Browse Source

LoginAlert -> LoginAlertModal

visuddhinanda 2 years ago
parent
commit
665bdc43b0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dashboard/src/pages/library/article/show.tsx

+ 2 - 2
dashboard/src/pages/library/article/show.tsx

@@ -49,7 +49,7 @@ import { modeChange } from "../../../reducers/article-mode";
 import SearchButton from "../../../components/general/SearchButton";
 import ToStudio from "../../../components/auth/ToStudio";
 import { currentUser as _currentUser } from "../../../reducers/current-user";
-import LoginAlert from "../../../components/auth/LoginAlert";
+import LoginAlertModal from "../../../components/auth/LoginAlertModal";
 
 /**
  * type:
@@ -328,7 +328,7 @@ const Widget = () => {
             key="Article"
             style={{ marginLeft: "auto", marginRight: "auto", width: 1100 }}
           >
-            {loadedArticleData ? <LoginAlert /> : undefined}
+            <LoginAlertModal mode={currMode} />
             <Article
               active={true}
               type={type as ArticleType}