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.
26 lines
777 B
26 lines
777 B
import React, { useContext } from 'react';
|
|
import AjoutLien from '../components/AjoutLien';
|
|
import DisplayPosts from '../components/Post/DisplayPosts';
|
|
import Navbar from '../components/Navbar';
|
|
import SuggestFriends from '../components/UserProfil/SuggestFriends';
|
|
import { UidContext } from '../components/AppContext';
|
|
|
|
const Home = () => {
|
|
const uid = useContext(UidContext);
|
|
return (
|
|
<>
|
|
<Navbar />
|
|
<main >
|
|
<div className='postInMain'>
|
|
<DisplayPosts type={"home"}/>
|
|
</div>
|
|
<div className="RightBar">
|
|
<AjoutLien/>
|
|
{uid && <SuggestFriends />}
|
|
</div>
|
|
</main>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default Home; |