Quellcode durchsuchen

add notification of flash message button in header

AlexiCauvin vor 6 Jahren
Ursprung
Commit
7059bf6dd2

+ 30 - 0
src/component/Header/MenuActionListItem/Notification.jsx Datei anzeigen

@@ -0,0 +1,30 @@
1
+import React from 'react'
2
+import PropTypes from 'prop-types'
3
+
4
+const Notification = props => {
5
+  return (
6
+    <li className='header__menu__rightside__itemnotification'>
7
+      <div className='header__menu__rightside__itemnotification__timeline dropdown'>
8
+        <button
9
+          type='button'
10
+          className='timeline__btnnotif btnnavbar btn btn-secondary dropdown-toggle'
11
+          id='headerNotificationBtn'
12
+          data-toggle='dropdown'
13
+          aria-haspopup='true'
14
+          aria-expanded='false'
15
+        >
16
+          Notification
17
+        </button>
18
+        <div className='timeline__subdropdown dropdown-menu' aria-labelledby='headerDropdownMenuButton'>
19
+          <div className='timeline__subdropdown__text dropdown-item' >
20
+            Conversation archivé
21
+          </div>
22
+          <div className='timeline__subdropdown__text dropdown-item' >
23
+            Fichier supprimé
24
+          </div>
25
+        </div>
26
+      </div>
27
+    </li>
28
+  )
29
+}
30
+export default Notification

+ 3 - 0
src/container/Header.jsx Datei anzeigen

@@ -10,6 +10,7 @@ import MenuActionListItemSearch from '../component/Header/MenuActionListItem/Sea
10 10
 import MenuActionListItemDropdownLang from '../component/Header/MenuActionListItem/DropdownLang.jsx'
11 11
 import MenuActionListItemHelp from '../component/Header/MenuActionListItem/Help.jsx'
12 12
 import MenuActionListItemMenuProfil from '../component/Header/MenuActionListItem/MenuProfil.jsx'
13
+import MenuActionListItemNotification from '../component/Header/MenuActionListItem/Notification.jsx'
13 14
 import logoHeader from '../img/logo-tracim.png'
14 15
 import {
15 16
   newFlashMessage,
@@ -83,6 +84,8 @@ class Header extends React.Component {
83 84
                 user={user}
84 85
                 onClickLogout={this.handleClickLogout}
85 86
               />
87
+
88
+              <MenuActionListItemNotification />
86 89
             </ul>
87 90
 
88 91
           </div>

+ 18 - 1
src/css/Header.styl Datei anzeigen

@@ -1,7 +1,7 @@
1 1
 .header
2 2
   position fixed
3 3
   width 100%
4
-  box-shadow shadow-bottom
4
+  border-bottom 1px solid grey
5 5
   z-index 5
6 6
   &__logo
7 7
     &__img
@@ -69,6 +69,7 @@
69 69
             color darkGrey
70 70
       &__itemprofil
71 71
         .profilgroup
72
+          margin-right 30px
72 73
           &__name
73 74
             border 0
74 75
             padding 0 5px
@@ -105,6 +106,22 @@
105 106
             .setting__link
106 107
               padding 10px
107 108
               color fontColor
109
+      &__itemnotification
110
+        &__timeline
111
+          margin-right 30px
112
+          .timeline
113
+            &__btnnotif
114
+              color darkGrey
115
+              &::after
116
+                margin-left 15px
117
+            &__subdropdown
118
+              padding 0
119
+              left inherit
120
+              right 0
121
+              cursor pointer
122
+              &__text
123
+                padding 10px;
124
+
108 125
 
109 126
 @media (min-width: min-lg) and (max-width: max-lg)
110 127
   .header