From 99cefd45bc8fe98aa15c24b8dc63e7a5d99368b6 Mon Sep 17 00:00:00 2001
From: razzanYoni <13521087@mahasiswa.itb.ac.id>
Date: Sat, 18 Nov 2023 02:09:24 +0700
Subject: [PATCH] resolve subscription feature

---
 src/components/sidebar.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/sidebar.tsx b/src/components/sidebar.tsx
index c29a2d5..58576f3 100644
--- a/src/components/sidebar.tsx
+++ b/src/components/sidebar.tsx
@@ -7,7 +7,7 @@ import {useAuth} from "@/TonalityApp.tsx";
 
 
 const Sidebar = () => {
-  const { token, onLogout } = useAuth();
+  const { token, username, onLogout } = useAuth();
   return (
     <nav>
         <div className="sidebar text-white w-200 flex fixed flex-col items-center top-0 left-0 h-full border-r border-opacity-10 border-gray-300 pr-6">
@@ -28,7 +28,7 @@ const Sidebar = () => {
             </nav>
           </div>
           <div className="user-profile flex mb-5 items-center text-left justify-items-left ">
-           <FontAwesomeIcon icon={faUser} className="mr-2" /> Username
+           <FontAwesomeIcon icon={faUser} className="mr-2" /> {username}
           </div>
           {
             token &&
-- 
GitLab