Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 1307 | Rev 1310 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1309 steven 1
import React from 'react';
2
import { useState } from 'react';
3
import { useLayoutEffect } from 'react';
4
import { axios } from '../utils';
5
import Notification from './notification';
1307 steven 6
 
1309 steven 7
export default () => {
8
  const [notifications, setNotifications] = useState([]);
9
  const handleNotifications = async () => {
10
    const _notifications = await axios.get('/notifications');
11
    console.log('>>: _notifications ', _notifications)
12
  }
13
  useLayoutEffect(() => {
14
    handleNotifications();
15
  }, []);
1307 steven 16
  return (
1309 steven 17
    <section className="notifications-page">
18
      <div className="container">
19
        <div
20
          className='w-100'
21
        >
22
          <h1>Notificaciones</h1>
23
        </div>
24
        <div className="messages-sec">
25
          <Notification
26
          />
27
        </div>
28
      </div>
29
    </section>
1307 steven 30
  )
31
}