@@ -157,7 +157,7 @@ export const VaultPage: React.FC<VaultPageProps> = ({ user }) => {
157157 < nav className = "space-y-2" >
158158 < Button
159159 variant = "ghost"
160- className = "w-full justify-start gap-3 rounded-xl px-4 py-3 text-rose-600 transition-all hover:bg-rose-100 hover:text-rose-700"
160+ className = { cn ( "w-full justify-start gap-3 rounded-xl px-4 py-3 transition-all hover:bg-rose-100 hover:text-rose-700" , activeTab === "passwords" && "bg-rose-50 text-rose-700" ) }
161161 onClick = { ( ) => {
162162 setActiveTab ( "passwords" ) ;
163163 setIsSidebarOpen ( false ) ;
@@ -168,7 +168,7 @@ export const VaultPage: React.FC<VaultPageProps> = ({ user }) => {
168168 </ Button >
169169 < Button
170170 variant = "ghost"
171- className = "w-full justify-start gap-3 rounded-xl px-4 py-3 text-gray-600 transition-all hover:bg-rose-50 hover:text-rose-600"
171+ className = { cn ( "w-full justify-start gap-3 rounded-xl px-4 py-3 transition-all hover:bg-rose-100 hover:text-rose-700" , activeTab === "notes" && "bg-rose-50 text-rose-700" ) }
172172 onClick = { ( ) => {
173173 setActiveTab ( "notes" ) ;
174174 setIsSidebarOpen ( false ) ;
@@ -179,7 +179,7 @@ export const VaultPage: React.FC<VaultPageProps> = ({ user }) => {
179179 </ Button >
180180 < Button
181181 variant = "ghost"
182- className = "w-full justify-start gap-3 rounded-xl px-4 py-3 text-gray-600 transition-all hover:bg-rose-50 hover:text-rose-600"
182+ className = { cn ( "w-full justify-start gap-3 rounded-xl px-4 py-3 transition-all hover:bg-rose-100 hover:text-rose-700" , activeTab === "pins" && "bg-rose-50 text-rose-700" ) }
183183 onClick = { ( ) => {
184184 setActiveTab ( "pins" ) ;
185185 setIsSidebarOpen ( false ) ;
@@ -190,7 +190,7 @@ export const VaultPage: React.FC<VaultPageProps> = ({ user }) => {
190190 </ Button >
191191 < Button
192192 variant = "ghost"
193- className = "w-full justify-start gap-3 rounded-xl px-4 py-3 text-gray-600 transition-all hover:bg-rose-50 hover:text-rose-600"
193+ className = { cn ( "w-full justify-start gap-3 rounded-xl px-4 py-3 transition-all hover:bg-rose-100 hover:text-rose-700" , activeTab === "cards" && "bg-rose-50 text-rose-700" ) }
194194 onClick = { ( ) => {
195195 setActiveTab ( "cards" ) ;
196196 setIsSidebarOpen ( false ) ;
@@ -203,7 +203,7 @@ export const VaultPage: React.FC<VaultPageProps> = ({ user }) => {
203203 < div className = "mt-auto pt-6" >
204204 < Button
205205 variant = "ghost"
206- className = "w-full justify-start gap-3 rounded-xl px-4 py-3 text-gray-600 transition-all hover:bg-rose-50 hover:text-rose-600"
206+ className = { cn ( "w-full justify-start gap-3 rounded-xl px-4 py-3 transition-all hover:bg-rose-100 hover:text-rose-700" , activeTab === "settings" && "bg-rose-50 text-rose-700" ) }
207207 >
208208 < Settings className = "h-5 w-5" />
209209 Settings
0 commit comments