From c31621faeec5f84d42859d796507916656831a96 Mon Sep 17 00:00:00 2001
From: Fatih20 <fnri39@protonmail.com>
Date: Fri, 17 Nov 2023 05:15:42 +0700
Subject: [PATCH] Show images of gym properly.

---
 .env                            | 2 +-
 src/components/gym/GymCard.tsx  | 2 +-
 src/pages/gym/GymIndividual.tsx | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.env b/.env
index 0f25441..ea67a3b 100644
--- a/.env
+++ b/.env
@@ -1,3 +1,3 @@
 VITE_NODE_JS_API=http://localhost:3000
 VITE_NODE_JS_KEY=mbdmatkul4sks
-VITE_GYM_MEDIA_URL=http://localhost:8000/gym
+VITE_GYM_MEDIA_URL=http://localhost:3002/public/image/gym
diff --git a/src/components/gym/GymCard.tsx b/src/components/gym/GymCard.tsx
index ffc08fa..acd935a 100644
--- a/src/components/gym/GymCard.tsx
+++ b/src/components/gym/GymCard.tsx
@@ -17,7 +17,7 @@ function GymCard({
         } rounded-lg items-start justify-start bg-slate-600 text-white font-normal gap-2 w-full`}
       >
         <img
-          src={`${config.GYM_MEDIA_URL}/${pictureId}.jpg`}
+          src={`${config.GYM_MEDIA_URL}/${pictureId}.png`}
           className={`${
             !horizontal ? "w-full rounded-t-lg" : "h-full rounded-l-lg"
           }  self-center`}
diff --git a/src/pages/gym/GymIndividual.tsx b/src/pages/gym/GymIndividual.tsx
index f9eb9d4..930af3e 100644
--- a/src/pages/gym/GymIndividual.tsx
+++ b/src/pages/gym/GymIndividual.tsx
@@ -20,7 +20,7 @@ function GymIndividual() {
   return (
     <div className="w-full flex flex-col max-w-5xl mx-auto py-6 gap-4">
       <img
-        src={`${config.GYM_MEDIA_URL}/${gym.pictureId}.jpg`}
+        src={`${config.GYM_MEDIA_URL}/${gym.pictureId}.png`}
         className="w-full"
       />
       <div className="flex flex-col items-start justify-start text-left">
-- 
GitLab