From c7e7bde19e627b82666f7d21ba1826e42e9f3c67 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 11 Oct 2025 15:09:43 +0000 Subject: [PATCH] Fix: Language selector not updating dashboard and sidebar --- src/components/DashboardLayout.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/DashboardLayout.tsx b/src/components/DashboardLayout.tsx index bb88ef9..aa12942 100644 --- a/src/components/DashboardLayout.tsx +++ b/src/components/DashboardLayout.tsx @@ -223,7 +223,7 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
{!sidebarCollapsed && (
- Main Menu + {t('dashboard')}
@@ -353,7 +353,7 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
{!sidebarCollapsed && (
- Listing + {t('myListings')}
@@ -394,7 +394,7 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
{!sidebarCollapsed && (
- Account + {t('profile')}
@@ -434,7 +434,7 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => { className={`flex items-center space-x-3 px-7 py-2.5 rounded-r-full transition-all text-gray-700 hover:text-red-600 w-full border-l-4 border-transparent ${sidebarCollapsed ? 'justify-center px-2' : ''}`} > - {!sidebarCollapsed && Logout} + {!sidebarCollapsed && {t('signOut')}}
@@ -464,7 +464,7 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {