Rev 1307 | Rev 1310 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import React from 'react';
import { useState } from 'react';
import { useLayoutEffect } from 'react';
import { axios } from '../utils';
import Notification from './notification';
export default () => {
const [notifications, setNotifications] = useState([]);
const handleNotifications = async () => {
const _notifications = await axios.get('/notifications');
console.log('>>: _notifications ', _notifications)
}
useLayoutEffect(() => {
handleNotifications();
}, []);
return (
<section className="notifications-page">
<div className="container">
<div
className='w-100'
>
<h1>Notificaciones</h1>
</div>
<div className="messages-sec">
<Notification
/>
</div>
</div>
</section>
)
}