From 188e806427ff6c9b302d994fc9c84a0300526688 Mon Sep 17 00:00:00 2001
From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>
Date: Mon, 9 Sep 2024 20:10:16 +0300
Subject: refactor: make names clickable throughout the site, fix user pages

---
 frontend/src/components/RankingEntry.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'frontend/src/components/RankingEntry.tsx')

diff --git a/frontend/src/components/RankingEntry.tsx b/frontend/src/components/RankingEntry.tsx
index b77bb3d..023a896 100644
--- a/frontend/src/components/RankingEntry.tsx
+++ b/frontend/src/components/RankingEntry.tsx
@@ -11,8 +11,10 @@ const RankingEntry: React.FC<RankingEntryProps> = (curRankingData) => {
         <div className='leaderboard-entry'>
             <span>{curRankingData.curRankingData.placement}</span>
             <div>
+            <Link to={`/users/${curRankingData.curRankingData.user.steam_id}`}>           
                 <img src={curRankingData.curRankingData.user.avatar_link}></img>
                 <span>{curRankingData.curRankingData.user.user_name}</span>
+            </Link>
             </div>
             <span>{curRankingData.curRankingData.total_score}</span>
         </div>
-- 
cgit v1.2.3

