From 884cb9c46214f74b85b920adb229f9f5b5737ca9 Mon Sep 17 00:00:00 2001 From: Chamika J <75464293+chamikaJ@users.noreply.github.com> Date: Mon, 4 Aug 2025 09:58:49 +0530 Subject: [PATCH] refactor(SettingsLayout): streamline layout and improve styling - Removed unused imports and simplified margin handling in SettingsLayout. - Updated layout classes for better responsiveness and visual consistency. - Enhanced sidebar and outlet rendering with improved Flex component usage. - Streamlined overall layout for a cleaner and more modern appearance. --- .../src/layouts/SettingsLayout.tsx | 24 +++++-------------- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/worklenz-frontend/src/layouts/SettingsLayout.tsx b/worklenz-frontend/src/layouts/SettingsLayout.tsx index 84e050f6..924bba65 100644 --- a/worklenz-frontend/src/layouts/SettingsLayout.tsx +++ b/worklenz-frontend/src/layouts/SettingsLayout.tsx @@ -1,35 +1,25 @@ import { Flex, Typography } from '@/shared/antd-imports'; import SettingsSidebar from '../pages/settings/sidebar/settings-sidebar'; -import { Outlet, useNavigate } from 'react-router-dom'; +import { Outlet } from 'react-router-dom'; import { useMediaQuery } from 'react-responsive'; -import { useEffect } from 'react'; -import { useAuthService } from '@/hooks/useAuth'; const SettingsLayout = () => { const isTablet = useMediaQuery({ query: '(min-width: 768px)' }); - const { getCurrentSession } = useAuthService(); - const currentSession = getCurrentSession(); - const navigate = useNavigate(); - - return ( -
+
Settings {isTablet ? ( - + - + @@ -37,9 +27,7 @@ const SettingsLayout = () => {