瀏覽代碼

add openModal function for each button and adjust Modal header style

kaoritokashiki 5 年之前
父節點
當前提交
62901fc80e
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      src/client/js/components/PageAccessoriesModal.jsx
  2. 4 4
      src/client/js/components/TopOfTableContents.jsx

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

@@ -19,7 +19,7 @@ const PageAccessoriesModal = (props) => {
       toggle={props.onClose}
       className="grw-create-page"
     >
-      <ModalHeader tag="h4" className="bg-primary text-light">
+      <ModalHeader tag="h4">
         { t('TopOfTableContentsModal') }
       </ModalHeader>
       <ModalBody>

+ 4 - 4
src/client/js/components/TopOfTableContents.jsx

@@ -44,15 +44,15 @@ const TopOfTableContents = (props) => {
           <PageList />
         </button>
 
-        <button type="button" className="bg-transparent border-0">
-          <TimeLine onClick={renderModal} />
+        <button type="button" className="bg-transparent border-0" onClick={openPageAccessoriesModal}>
+          <TimeLine />
         </button>
 
-        <button type="button" className="bg-transparent border-0">
+        <button type="button" className="bg-transparent border-0" onClick={openPageAccessoriesModal}>
           <RecentChanges />
         </button>
 
-        <button type="button" className="bg-transparent border-0">
+        <button type="button" className="bg-transparent border-0" onClick={openPageAccessoriesModal}>
           <Attachment />
         </button>
         {/* [TODO: setting Footprints' icon by GW-3308] */}