From 5538c27d62bb2cd5d3de5fa46c2eee877f8aae8f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Chlo=C3=A9=20JACOB?= <chloe.jacob4@etu.unistra.fr>
Date: Sun, 26 Mar 2023 23:55:35 +0200
Subject: [PATCH] quelques modifications

---
 src/components/AddComment.tsx | 3 ++-
 src/components/Navbar.tsx     | 4 +++-
 src/redux/feed/thunks.ts      | 2 +-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/components/AddComment.tsx b/src/components/AddComment.tsx
index 4b43ead..475fa10 100644
--- a/src/components/AddComment.tsx
+++ b/src/components/AddComment.tsx
@@ -13,7 +13,7 @@ const AddComment = ({ idPost }: commentProps) => {
   const [comment, setComment] = useState('');
   return (
     <>
-      <div className="flex justify-center px-4 gap-4">
+      <div className="flex justify-center px-4 gap-4 pb-4">
         <input
           type="text"
           value={comment}
@@ -27,6 +27,7 @@ const AddComment = ({ idPost }: commentProps) => {
             }
           }}
           className="border border-gray-400 p-2 rounded-md w-full"
+          placeholder="Ajouter un commentaire"
         ></input>
         <button
           onClick={() => {
diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx
index 8cf0c51..fadedad 100644
--- a/src/components/Navbar.tsx
+++ b/src/components/Navbar.tsx
@@ -24,7 +24,9 @@ const Navbar = () => {
       {/* HEADER */}
       <div className="border-b-[0.8px] dark:text-white">
         <div className="max-w-[1280px] mx-auto flex items-center justify-between px-4 py-2 h-16">
-          <h1 className="instalike_title text-[44px]">Instalike</h1>
+          <Link to="/feed">
+            <h1 className="instalike_title text-[44px]">Instalike</h1>
+          </Link>
           <nav className="hidden sm:flex gap-5">
             {/* HOME */}
             <Link to="/feed">
diff --git a/src/redux/feed/thunks.ts b/src/redux/feed/thunks.ts
index 3a42c70..1869d28 100644
--- a/src/redux/feed/thunks.ts
+++ b/src/redux/feed/thunks.ts
@@ -77,7 +77,7 @@ export const fetchDiscoverAsync = (): AppThunkAction<Promise<void>> => {
 // Own posts for profile
 export const fetchProfileAsync = (): AppThunkAction<Promise<void>> => {
   return async (dispatch, getState, api) => {
-    const { data } = await api.users.me.posts.fetch({ cursor: null, amount: 20 });
+    const { data } = await api.users.me.posts.fetch({ cursor: null, amount: 50 });
     dispatch(setUserFeed(data.items));
   }
 };
-- 
GitLab