Fix: Language selector not updating dashboard and sidebar
This commit is contained in:
@@ -223,7 +223,7 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
|
|||||||
<div className="mb-6">
|
<div className="mb-6">
|
||||||
{!sidebarCollapsed && (
|
{!sidebarCollapsed && (
|
||||||
<div className="flex items-center justify-between mb-4 px-4 py-3">
|
<div className="flex items-center justify-between mb-4 px-4 py-3">
|
||||||
<span className="text-xs font-semibold text-gray-600 uppercase tracking-wider">Main Menu</span>
|
<span className="text-xs font-semibold text-gray-600 uppercase tracking-wider">{t('dashboard')}</span>
|
||||||
<div className="flex space-x-1">
|
<div className="flex space-x-1">
|
||||||
<div className="w-1 h-1 bg-gray-400 rounded-full"></div>
|
<div className="w-1 h-1 bg-gray-400 rounded-full"></div>
|
||||||
<div className="w-1 h-1 bg-gray-400 rounded-full"></div>
|
<div className="w-1 h-1 bg-gray-400 rounded-full"></div>
|
||||||
@@ -353,7 +353,7 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
|
|||||||
<div className="mb-6">
|
<div className="mb-6">
|
||||||
{!sidebarCollapsed && (
|
{!sidebarCollapsed && (
|
||||||
<div className="flex items-center justify-between mb-4 px-4 py-3">
|
<div className="flex items-center justify-between mb-4 px-4 py-3">
|
||||||
<span className="text-xs font-semibold text-gray-600 uppercase tracking-wider">Listing</span>
|
<span className="text-xs font-semibold text-gray-600 uppercase tracking-wider">{t('myListings')}</span>
|
||||||
<div className="flex space-x-1">
|
<div className="flex space-x-1">
|
||||||
<div className="w-1 h-1 bg-gray-400 rounded-full"></div>
|
<div className="w-1 h-1 bg-gray-400 rounded-full"></div>
|
||||||
<div className="w-1 h-1 bg-gray-400 rounded-full"></div>
|
<div className="w-1 h-1 bg-gray-400 rounded-full"></div>
|
||||||
@@ -394,7 +394,7 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
|
|||||||
<div className="mb-6">
|
<div className="mb-6">
|
||||||
{!sidebarCollapsed && (
|
{!sidebarCollapsed && (
|
||||||
<div className="flex items-center justify-between mb-4 px-4 py-3">
|
<div className="flex items-center justify-between mb-4 px-4 py-3">
|
||||||
<span className="text-xs font-semibold text-gray-600 uppercase tracking-wider">Account</span>
|
<span className="text-xs font-semibold text-gray-600 uppercase tracking-wider">{t('profile')}</span>
|
||||||
<div className="flex space-x-1">
|
<div className="flex space-x-1">
|
||||||
<div className="w-1 h-1 bg-gray-400 rounded-full"></div>
|
<div className="w-1 h-1 bg-gray-400 rounded-full"></div>
|
||||||
<div className="w-1 h-1 bg-gray-400 rounded-full"></div>
|
<div className="w-1 h-1 bg-gray-400 rounded-full"></div>
|
||||||
@@ -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' : ''}`}
|
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' : ''}`}
|
||||||
>
|
>
|
||||||
<LogOut className="w-5 h-5 flex-shrink-0" />
|
<LogOut className="w-5 h-5 flex-shrink-0" />
|
||||||
{!sidebarCollapsed && <span className="font-medium">Logout</span>}
|
{!sidebarCollapsed && <span className="font-medium">{t('signOut')}</span>}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -464,7 +464,7 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => {
|
|||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Search (Ctrl+/)"
|
placeholder={`${t('search')} (Ctrl+/)`}
|
||||||
className="block w-80 pl-12 pr-16 py-3 border border-white rounded-xl text-sm placeholder-gray-500 focus:outline-none focus:ring-1 focus:border-red-500"
|
className="block w-80 pl-12 pr-16 py-3 border border-white rounded-xl text-sm placeholder-gray-500 focus:outline-none focus:ring-1 focus:border-red-500"
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: '#fff',
|
backgroundColor: '#fff',
|
||||||
|
|||||||
Reference in New Issue
Block a user