From 0a469560bae61a76dea448eccb6bfa9c1fe128e6 Mon Sep 17 00:00:00 2001 From: Truong Thuc Van Date: Sat, 21 Oct 2023 18:11:27 +0700 Subject: [PATCH] fix(leaderborad): Change image src --- components/leaderboard/personal-achievements/Ranking.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/leaderboard/personal-achievements/Ranking.tsx b/components/leaderboard/personal-achievements/Ranking.tsx index 8da3cd8..9b4e8c2 100644 --- a/components/leaderboard/personal-achievements/Ranking.tsx +++ b/components/leaderboard/personal-achievements/Ranking.tsx @@ -7,13 +7,13 @@ interface RankingProps { } const medalImages = [ - "/medals/top1.svg", - "/medals/top2.svg", - "/medals/top3.svg", + "/assets/medals/top1.svg", + "/assets/medals/top2.svg", + "/assets/medals/top3.svg", ]; const Ranking: React.FC = ({ - medalSrc: customMedalSrc = "/medals/normal_top.svg", + medalSrc: customMedalSrc = "/assets/medals/normal_top.svg", top, }) => { const medalSrc = top <= 3 ? medalImages[top - 1] : customMedalSrc;