|
|
@ -1,11 +1,11 @@
|
|
|
|
import axios from 'axios';
|
|
|
|
import axios from 'axios';
|
|
|
|
import React, { useEffect, useState } from 'react';
|
|
|
|
import React, { Component, useEffect, useState } from 'react';
|
|
|
|
import { useSelector } from 'react-redux';
|
|
|
|
import { useSelector } from 'react-redux';
|
|
|
|
import FollowHandler from '../UserProfil/FollowHandler';
|
|
|
|
import FollowHandler from '../UserProfil/FollowHandler';
|
|
|
|
import { dateParser, isEmpty } from '../Utils';
|
|
|
|
import { dateParser, isEmpty } from '../Utils';
|
|
|
|
import ButtonLike from './ButtonLike';
|
|
|
|
import ButtonLike from './ButtonLike';
|
|
|
|
import Comment from './Comment';
|
|
|
|
import Comment from './Comment';
|
|
|
|
|
|
|
|
import Commentaire from '../../assets/img/commentaire.png';
|
|
|
|
|
|
|
|
|
|
|
|
const LinkPreview = ({ link }) => {
|
|
|
|
const LinkPreview = ({ link }) => {
|
|
|
|
const [preview, setPreview] = useState({ image: '', title: '', description: '' });
|
|
|
|
const [preview, setPreview] = useState({ image: '', title: '', description: '' });
|
|
|
@ -97,7 +97,7 @@ const Post = ( { post } ) => {
|
|
|
|
<div>{post.likers.length}</div>
|
|
|
|
<div>{post.likers.length}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="commentaire">
|
|
|
|
<div id="commentaire">
|
|
|
|
<img src="commentaire.png" onClick={() => setComments(!comments)}/>
|
|
|
|
<img src={Commentaire} onClick={() => setComments(!comments)}/>
|
|
|
|
<div>{post.comments.length}</div>
|
|
|
|
<div>{post.comments.length}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|