From 0cafa8bf81973f25650a71d4f2e51ce86c90b94f Mon Sep 17 00:00:00 2001 From: Sajad Mirjalili Date: Mon, 29 Sep 2025 19:43:31 +0330 Subject: [PATCH] fix: format the code --- public/locales/en/authentication.json | 2 +- public/locales/en/sideNav.json | 2 +- public/locales/fa/authentication.json | 2 +- public/locales/fa/sideNav.json | 2 +- src/components/layout/Layout.tsx | 4 ++-- src/components/layout/Toolbar.tsx | 9 ++++----- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/public/locales/en/authentication.json b/public/locales/en/authentication.json index fbdb9c5..9ce99c6 100644 --- a/public/locales/en/authentication.json +++ b/public/locales/en/authentication.json @@ -64,4 +64,4 @@ "redirectingTo": "Redirecting to", "redirecting": "Redirecting..." } -} \ No newline at end of file +} diff --git a/public/locales/en/sideNav.json b/public/locales/en/sideNav.json index 37ab853..e564dd6 100644 --- a/public/locales/en/sideNav.json +++ b/public/locales/en/sideNav.json @@ -13,4 +13,4 @@ "activeSessions": "Active sessions", "setting": "Settings" } -} \ No newline at end of file +} diff --git a/public/locales/fa/authentication.json b/public/locales/fa/authentication.json index e9b03ad..01591a6 100644 --- a/public/locales/fa/authentication.json +++ b/public/locales/fa/authentication.json @@ -64,4 +64,4 @@ "redirectingTo": "در حال انتقال به", "redirecting": "درحال انتقال..." } -} \ No newline at end of file +} diff --git a/public/locales/fa/sideNav.json b/public/locales/fa/sideNav.json index 1098cba..6965be2 100644 --- a/public/locales/fa/sideNav.json +++ b/public/locales/fa/sideNav.json @@ -13,4 +13,4 @@ "activeSessions": "نشست های فعال", "setting": "تنظیمات" } -} \ No newline at end of file +} diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx index 3e02947..d4982ce 100644 --- a/src/components/layout/Layout.tsx +++ b/src/components/layout/Layout.tsx @@ -63,8 +63,8 @@ export const Layout = () => { setSideNavOpen(false)} - header={isMobile ? undefined :
} - footer={isMobile ?
: undefined} + header={isMobile ? undefined :
} + footer={isMobile ?
: undefined} navConfig={navItemConfigs} activePath={location.pathname + location.hash} selectedVariant="textOnly" diff --git a/src/components/layout/Toolbar.tsx b/src/components/layout/Toolbar.tsx index 1ca8270..c0bd598 100644 --- a/src/components/layout/Toolbar.tsx +++ b/src/components/layout/Toolbar.tsx @@ -1,4 +1,4 @@ -import { Avatar, Box, IconButton, Toolbar as MuiToolbar } from '@mui/material'; +import { Box, IconButton, Toolbar as MuiToolbar } from '@mui/material'; import { Icon } from '@rkheftan/harmony-ui'; import { HambergerMenu, Menu } from 'iconsax-react'; import { useState, type Dispatch, type SetStateAction } from 'react'; @@ -17,7 +17,6 @@ export const Toolbar: React.FC = ({ sideNavOpen, setSideNavOpen, isMobile, - user, }) => { const [anchorEl, setAnchorEl] = useState(null); const open = Boolean(anchorEl); @@ -63,9 +62,9 @@ export const Toolbar: React.FC = ({ )} - - - + + + );