Просмотр исходного кода

add state for activeComponents to solve an undefined error

kaoritokashiki 5 лет назад
Родитель
Сommit
9c655c14ff

+ 1 - 1
src/client/js/components/PageAccessoriesModal.jsx

@@ -76,7 +76,7 @@ const PageAccessoriesModal = (props) => {
             <TabPane tabId="timeline"></TabPane>
             <TabPane tabId="recent-changes"></TabPane>
             <TabPane tabId="attachment" className="p-4">
-              {pageAccessoriesContainer.activeComponents.has('attachment') && <PageAttachment /> }
+              {pageAccessoriesContainer.state.activeComponents.has('attachment') && <PageAttachment /> }
             </TabPane>
           </TabContent>
         </ModalBody>

+ 0 - 3
src/client/styles/scss/_layout_growi.scss

@@ -23,9 +23,6 @@
   }
 
   .grw-page-accessories-modal {
-    .nav-link {
-      cursor: pointer;
-    }
     .table-top-icon {
       margin-right: 5px;
     }