You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
753 B
29 lines
753 B
import React, {useState} from 'react';
|
|
import Navbar from '../components/Navbar';
|
|
import Notif from '../components/Notif';
|
|
import {useSelector} from "react-redux";
|
|
|
|
|
|
const Trends = () => {
|
|
const [setLoadNotif] = useState(true);
|
|
const userData = useSelector((state) => state.user.user);
|
|
|
|
return (
|
|
<div id={'listeNotif'}>
|
|
<Navbar />
|
|
<h1>Notification</h1>
|
|
{
|
|
userData.notif != null && userData.notif.map((notif) => {
|
|
return (
|
|
<li>
|
|
<Notif key={notif._id} notification={notif}/>
|
|
</li>
|
|
);
|
|
})
|
|
|
|
}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Trends; |