Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1310 Rev 1311
Línea 17... Línea 17...
17
  useLayoutEffect(() => {
17
  useLayoutEffect(() => {
18
    handleNotifications();
18
    handleNotifications();
19
  }, []);
19
  }, []);
20
  return (
20
  return (
21
    <section className="notifications-page">
21
    <section className="notifications-page">
22
      <div className="container">
22
      <div className="card">
23
        <div
23
        <div className="card-body">
24
          className='w-100'
24
          <div className="container">
25
        >
-
 
26
          <h1>Notificaciones</h1>
25
          <h5 className="card-title">Notificaciones</h5>
27
        </div>
-
 
28
        <div className="messages-sec">
26
            <div className="messages-sec">
29
          <table class="table table-striped">
27
              <table className="table table-striped">
30
            <tbody>
28
                <tbody>
31
              {
29
                  {
32
                !!notifications.length && (
30
                    !!notifications.length && (
33
                  notifications.map((element, i) => {
31
                      notifications.map((element, i) => {
34
                    return(
32
                        return(
35
                      <tr key={i.toString()}>
33
                          <tr key={i.toString()}>
36
                        <td>
34
                            <td>
37
                          <a href={element.link}>
35
                              <a href={element.link}>
38
                            {element.message}
36
                                {element.message}
39
                            <span> {element.time_elapsed} </span>
37
                                <span> {element.time_elapsed} </span>
40
                          </a>
38
                              </a>
41
                        </td>
39
                            </td>
42
                      </tr>
40
                          </tr>
-
 
41
                        )
-
 
42
                      })
43
                    )
43
                    )
44
                  })
44
                  }
45
                )
45
                </tbody>
46
              }
46
              </table>
47
            </tbody>
47
            </div>
48
          </table>
48
          </div>
49
        </div>
49
        </div>
50
      </div>
50
      </div>
51
    </section>
51
    </section>
52
  )
52
  )
53
}
53
}