Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3693 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3693 Rev 3694
Línea 20... Línea 20...
20
const NotificationAlert = () => {
20
const NotificationAlert = () => {
21
  const notifications = useSelector(({ notification }) => notification.notifications);
21
  const notifications = useSelector(({ notification }) => notification.notifications);
Línea 22... Línea 22...
22
 
22
 
23
  return (
23
  return (
24
    <NotificationDiv>
-
 
25
      <AlertComponent
-
 
26
        notification={{
-
 
27
          id: '1',
-
 
28
          style: 'success',
-
 
29
          msg: 'Teste de notificação'
-
 
30
        }}
-
 
31
      />
-
 
32
      <AlertComponent
-
 
33
        notification={{
-
 
34
          id: '1',
-
 
35
          style: 'danger',
-
 
36
          msg: 'Teste de notificação'
-
 
37
        }}
-
 
38
      />
24
    <NotificationDiv>
39
      {notifications.map((notification) => (
25
      {notifications.map((notification) => (
40
        <AlertComponent notification={notification} key={notification.id} />
26
        <AlertComponent notification={notification} key={notification.id} />
41
      ))}
27
      ))}
42
    </NotificationDiv>
28
    </NotificationDiv>