diff --git a/src/layouts/navbar/components/blur-mode.button.tsx b/src/layouts/navbar/components/blur-mode.button.tsx index 8a1d9de1e..1c5959508 100644 --- a/src/layouts/navbar/components/blur-mode.button.tsx +++ b/src/layouts/navbar/components/blur-mode.button.tsx @@ -1,7 +1,7 @@ import { useState } from 'react' import { useGeneralSetting } from '@/context/general-setting.context' import { Icon } from '@/icons' -import { ConfirmationModal } from '@/components/ui' +import { ConfirmationModal, Tooltip } from '@/components/ui' import Analytics from '@/analytics' export function BlurModeButton() { @@ -28,16 +28,18 @@ export function BlurModeButton() { return ( <> -
- {blurMode ? ( - - ) : ( - - )} -
+ +
+ {blurMode ? ( + + ) : ( + + )} +
+
- - + +
+ +
+
} >
diff --git a/src/layouts/navbar/friends-list/friends.navbar.tsx b/src/layouts/navbar/friends-list/friends.navbar.tsx index 72da73465..1fbdc5324 100644 --- a/src/layouts/navbar/friends-list/friends.navbar.tsx +++ b/src/layouts/navbar/friends-list/friends.navbar.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react' import { AuthRequiredModal } from '@/components/auth/auth-required-modal' import { useAuth } from '@/context/auth.context' -import { BottomSheet } from '@/components/ui' +import { BottomSheet, Tooltip } from '@/components/ui' import { FriendsDirectView } from '@/layouts/friends/components/friends-direct-view' import { callEvent, listenEvent } from '@/common/utils/call-event' import { FriendRequestsButton } from '@/layouts/friends/components/buttons/friend-requests.button' @@ -45,14 +45,16 @@ export function FriendsListNavbar() { return ( <> -
clickToOpenSheet()} - > - - {hasPendingRequests && - renderPendingNotification(user?.friendshipStats?.pending || 0)} -
+ +
clickToOpenSheet()} + > + + {hasPendingRequests && + renderPendingNotification(user?.friendshipStats?.pending || 0)} +
+
setIsOpen(false)} size="medium">
diff --git a/src/layouts/navbar/navbar.layout.tsx b/src/layouts/navbar/navbar.layout.tsx index d33cb385a..5e0052252 100644 --- a/src/layouts/navbar/navbar.layout.tsx +++ b/src/layouts/navbar/navbar.layout.tsx @@ -13,7 +13,7 @@ import { useAuth } from '@/context/auth.context' import { useAppearance } from '@/context/appearance.context' import { BlurModeButton } from './components/blur-mode.button' import type { UserProfile } from '@/services/hooks/user/user-service.hook' -import { NewBadge } from '@/components/ui' +import { NewBadge, Tooltip } from '@/components/ui' import { SyncAccount } from './sync' import { getCurrentDate } from '../widgets/calendar/utils/date-events' import { useBirthdayConfetti } from '@/hooks/use-birthday-confetti' @@ -30,7 +30,7 @@ const tabs = [ id: Page.Home, icon: , activeIcon: , - label: 'ویجتیفای', + label: 'خانه', }, { @@ -58,32 +58,34 @@ export function NavbarTabs() { return (
{tabs.map((tab) => ( - + + ))}
) @@ -175,6 +177,7 @@ export function NavbarLayout(): JSX.Element { href={WIDGETIFY_URLS.website} target="_blank" rel="noopener noreferrer" + aria-label="وب‌سایت ویجتیفای" className="flex items-center justify-center border rounded-full border-white/10 bg-black/20 outline-2 outline-base-300" >
- + + + diff --git a/src/layouts/navbar/notifications/notification.navbar.tsx b/src/layouts/navbar/notifications/notification.navbar.tsx index 20e93e849..e6b196c1b 100644 --- a/src/layouts/navbar/notifications/notification.navbar.tsx +++ b/src/layouts/navbar/notifications/notification.navbar.tsx @@ -1,5 +1,5 @@ import { useMemo } from 'react' -import { Dropdown, NewBadge } from '@/components/ui' +import { Dropdown, NewBadge, Tooltip } from '@/components/ui' import { Icon } from '@/icons' import { useGetNotifications } from '@/services/hooks/extension/get-notifications.hook' import { NotificationCenter } from '@/layouts/navbar/notifications/notification-center/notification-center' @@ -27,14 +27,18 @@ export function NotificationNavbar() { maxHeight="420px" dropdownClassName="w-80 sm:w-96 rounded-2xl" trigger={ -
- - {hasCloseableNotifications && } -
+ +
+ + {hasCloseableNotifications && ( + + )} +
+
} >
diff --git a/src/layouts/navbar/profile/profile.tsx b/src/layouts/navbar/profile/profile.tsx index 55e2689c7..d126a3e26 100644 --- a/src/layouts/navbar/profile/profile.tsx +++ b/src/layouts/navbar/profile/profile.tsx @@ -1,6 +1,6 @@ import { useState, useEffect } from 'react' import { callEvent, listenEvent } from '@/common/utils/call-event' -import { ConfirmationModal, Dropdown, Modal } from '@/components/ui' +import { ConfirmationModal, Dropdown, Modal, Tooltip } from '@/components/ui' import { useAuth } from '@/context/auth.context' import AuthForm from '../../setting/tabs/account/auth-form/auth-form' import { ProfileDropdownMenu } from './components/profile-dropdown-menu' @@ -56,11 +56,13 @@ export function ProfileNav() { <> + + + } >