notification
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
parent
c11df0979d
commit
5c55de21e6
@ -0,0 +1,26 @@
|
|||||||
|
import React, {useEffect} from 'react';
|
||||||
|
import {isEmpty} from "./Utils";
|
||||||
|
import {useSelector} from "react-redux";
|
||||||
|
|
||||||
|
const Notif = ({message} ) => {
|
||||||
|
const usersData = useSelector((state) => state.users.users);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className='conteneur_notif'>
|
||||||
|
<div className={'contenue_notif'}>
|
||||||
|
<img id="PhotoProfile" alt="" src="lien" />
|
||||||
|
</div>
|
||||||
|
<div className={'contenue_notif'} >
|
||||||
|
<h6 id="NomProfile">
|
||||||
|
bastien
|
||||||
|
</h6>
|
||||||
|
</div>
|
||||||
|
<div className={'contenue_notif'}>
|
||||||
|
{message}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Notif;
|
@ -1,9 +1,18 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Navbar from '../components/Navbar';
|
import Navbar from '../components/Navbar';
|
||||||
|
import Notif from '../components/Notif';
|
||||||
|
|
||||||
const Trends = () => {
|
const Trends = () => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
<Navbar />
|
<Navbar />
|
||||||
|
<Notif message="a like"/>
|
||||||
|
<Notif message="a like"/>
|
||||||
|
<Notif message="a like"/>
|
||||||
|
<Notif message="a like"/>
|
||||||
|
<Notif message="a like"/>
|
||||||
|
<Notif message="a commenter votre poste"/>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -0,0 +1,36 @@
|
|||||||
|
/*.conteneur_notif{
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
margin-top: 1%;
|
||||||
|
margin-bottom: 1%;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
alignItems: center;
|
||||||
|
|
||||||
|
}*/
|
||||||
|
|
||||||
|
.conteneur_notif {
|
||||||
|
display: flex;
|
||||||
|
align-items:center;
|
||||||
|
justify-content: start;
|
||||||
|
|
||||||
|
margin-left: 10%;
|
||||||
|
margin-top: 1%;
|
||||||
|
margin-bottom: 1%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.contenue_notif:nth-child(2) {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
.messageUserNotif{
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message_Notif{
|
||||||
|
|
||||||
|
}
|
||||||
|
*/
|
Loading…
Reference in new issue