Skip to content
Snippets Groups Projects
Commit e30d7abc authored by Chloé JACOB's avatar Chloé JACOB :alien:
Browse files

dernières corrections

parent f67066fd
Branches
Tags
No related merge requests found
......@@ -40,6 +40,9 @@ const AddComment = ({ idPost }: commentProps) => {
onClick={() => {
dispatch(postNewCommentAsync(comment, idPost));
setComment('');
setTimeout(() => {
window.location.reload();
}, 700);
}}
>
<div className="bg-gray-500 text-white font-bold h-10 rounded-md flex items-center px-4">{t('actions.publish')}</div>
......
......@@ -57,7 +57,6 @@ const Post = ({ post, postid, username, location, time_post, caption, isLiked, l
return document.execCommand('copy', true, text);
}
}
console.log(post)
return <>
{/* A POST */}
......
......@@ -90,7 +90,7 @@ const AddPostView = () => {
</form>
{redirect &&
<Navigate to={'post/' + post.id} replace={true} />}
<Navigate to={'/post/' + post.id} replace={true} />}
</div>
</div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment