diff --git a/src/components/layout/AppSidebar.tsx b/src/components/layout/AppSidebar.tsx index c0bb1454..c5f2d15d 100644 --- a/src/components/layout/AppSidebar.tsx +++ b/src/components/layout/AppSidebar.tsx @@ -9,6 +9,7 @@ import { SettingsIcon, UploadIcon, WalletIcon, + XIcon, } from 'lucide-react' import { useTranslation } from 'react-i18next' import { Link } from 'react-router-dom' @@ -17,6 +18,7 @@ import { SidebarContent, SidebarFooter, SidebarGroup, + SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarMenu, @@ -25,12 +27,14 @@ import { SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, + useSidebar, } from '@/components/ui/sidebar' import { routes } from '@/constants/routes' import { useFeatures } from '@/hooks/useFeatures' export function AppSidebar({ side }: Pick, 'side'>) { const { t } = useTranslation() + const { toggleSidebar } = useSidebar() const { isLogsEnabled } = useFeatures() const mainItems = useMemo( @@ -97,6 +101,10 @@ export function AppSidebar({ side }: Pick, {/*TODO: i18n t('sidebar.title')*/} {t('navbar.title')} + toggleSidebar()}> + + {t('global.close')} + {mainItems.map((item) => ( diff --git a/src/components/settings/SettingsPage.tsx b/src/components/settings/SettingsPage.tsx index 6c4173c8..e86b134b 100644 --- a/src/components/settings/SettingsPage.tsx +++ b/src/components/settings/SettingsPage.tsx @@ -8,13 +8,13 @@ import { MoonIcon, DollarSignIcon, KeyIcon, - UnlockIcon, FileTextIcon, BookIcon, ExternalLinkIcon, TerminalIcon, PackageSearchIcon, ArrowLeftRightIcon, + LockKeyholeIcon, } from 'lucide-react' import { useTheme } from 'next-themes' import { useTranslation } from 'react-i18next' @@ -146,7 +146,7 @@ export const SettingsPage = ({ walletFileName }: SettingPageProps) => { />