Skip to content

Commit

Permalink
chore: 🔥 updated file names - notification
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeep-deriv committed Sep 24, 2024
1 parent aae0834 commit 0699127
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { useState } from 'react';
import clsx from 'clsx';
import { LegacyNotificationIcon } from '@deriv/quill-icons';
import { useTranslations } from '@deriv-com/translations';
import { Notifications as UINotifications, Tooltip, useDevice } from '@deriv-com/ui';
import './notifications.scss';
import { Notifications, Tooltip, useDevice } from '@deriv-com/ui';
import './custom-notifications.scss';

export const Notifications = () => {
const CustomNotifications = () => {
const [isOpen, setIsOpen] = useState(false);
const { localize } = useTranslations();
const { isMobile } = useDevice();
Expand All @@ -20,7 +20,7 @@ export const Notifications = () => {
>
<LegacyNotificationIcon iconSize='sm' />
</Tooltip>
<UINotifications
<Notifications
className={clsx('', {
'notifications__wrapper--mobile': isMobile,
'notifications__wrapper--desktop': !isMobile,
Expand All @@ -41,3 +41,5 @@ export const Notifications = () => {
</div>
);
};

export default CustomNotifications;
3 changes: 3 additions & 0 deletions src/components/layout/header/custom-notifications/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import CustomNotifications from './custom-notifications';

export default CustomNotifications;
4 changes: 2 additions & 2 deletions src/components/layout/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import { URLUtils } from '@deriv-com/utils';
import { AppLogo } from '../app-logo';
import AccountsInfoLoader from './account-info-loader';
import AccountSwitcher from './account-switcher';
import CustomNotifications from './custom-notifications';
import MenuItems from './menu-items';
import MobileMenu from './mobile-menu';
import { Notifications } from './notifications';
import PlatformSwitcher from './platform-switcher';
import './header.scss';

Expand All @@ -30,7 +30,7 @@ const AppHeader = () => {
} else if (activeLoginid) {
return (
<>
<Notifications />
<CustomNotifications />
{isDesktop && (
<Tooltip
as='a'
Expand Down

0 comments on commit 0699127

Please sign in to comment.