Skip to content

Commit 87356f9

Browse files
committed
fixup! feat: implement notification list component
1 parent c2961c2 commit 87356f9

30 files changed

+243
-144
lines changed

apps/browser-extension-wallet/src/components/MainMenu/MainHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { BrowserViewSections } from '@lib/scripts/types';
1313
import { NetworkPill } from '@components/NetworkPill';
1414
import { useAnalyticsContext } from '@providers';
1515
import { PostHogAction } from '@providers/AnalyticsProvider/analyticsTracker';
16-
import { NotificationsBellContainer } from '@components/NotificationsCenter';
16+
import { NotificationsBellContainer } from '@src/features/notifications-center';
1717

1818
export const MainHeader = (): React.ReactElement => {
1919
const { t } = useTranslation();

apps/browser-extension-wallet/src/components/NotificationsCenter/NotificationsCenter.tsx

Lines changed: 0 additions & 95 deletions
This file was deleted.

apps/browser-extension-wallet/src/components/NotificationsCenter/NotificationsCenterContainer.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

apps/browser-extension-wallet/src/components/NotificationsCenter/NotificationsCenterLayout.tsx

Lines changed: 0 additions & 28 deletions
This file was deleted.

apps/browser-extension-wallet/src/components/NotificationsCenter/index.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/* eslint-disable unicorn/no-useless-undefined */
2+
/* eslint-disable @typescript-eslint/explicit-module-boundary-types, promise/catch-or-return, sonarjs/cognitive-complexity, no-magic-numbers, unicorn/no-null */
3+
import React from 'react';
4+
import { ContentLayout } from '@src/components/Layout';
5+
import { useTranslation } from 'react-i18next';
6+
import { useNotificationsCenter } from '@hooks/useNotificationsCenter';
7+
import { Flex } from '@input-output-hk/lace-ui-toolkit';
8+
import { NavigationButton } from '@lace/common';
9+
import { useHistory } from 'react-router';
10+
import { SectionTitle } from '@components/Layout/SectionTitle';
11+
12+
export const NotificationDetails = (): React.ReactElement => {
13+
const { t } = useTranslation();
14+
const { unreadNotifications } = useNotificationsCenter();
15+
const history = useHistory();
16+
17+
return (
18+
<ContentLayout
19+
title={
20+
<SectionTitle
21+
isPopup
22+
title={
23+
<Flex alignItems="center" gap="$8">
24+
<NavigationButton icon="arrow" onClick={() => history.goBack()} />
25+
{t('notificationsCenter.title')}
26+
</Flex>
27+
}
28+
sideText={`(${unreadNotifications})`}
29+
data-testid="notifications-details-title"
30+
/>
31+
}
32+
>
33+
<div>
34+
<h1>Notification Details</h1>
35+
</div>
36+
</ContentLayout>
37+
);
38+
};
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)