Skip to content

Commit b5f479e

Browse files
authored
Merge pull request #69 from HORNET-Storage/feature/push-notification-panel-integration
Feature/push notification panel integration
2 parents bcf6c7d + f104172 commit b5f479e

File tree

9 files changed

+988
-4
lines changed

9 files changed

+988
-4
lines changed

src/components/settings/PushNotificationSettings.tsx

Lines changed: 438 additions & 0 deletions
Large diffs are not rendered by default.

src/components/settings/SettingsNavigation.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
InfoCircleOutlined,
1212
WalletOutlined,
1313
GlobalOutlined,
14+
BellOutlined,
1415
} from '@ant-design/icons';
1516

1617
const { Panel } = Collapse;
@@ -86,6 +87,12 @@ const settingsTabs: SettingsTab[] = [
8687
icon: <RobotOutlined className="item-icon" />,
8788
path: '/settings/ollama'
8889
},
90+
{
91+
key: 'push_notifications',
92+
label: 'Push Notifications',
93+
icon: <BellOutlined className="item-icon" />,
94+
path: '/settings/push-notifications'
95+
},
8996
{
9097
key: 'relay_info',
9198
label: 'Relay Info',

src/components/settings/SettingsPage.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import React from 'react';
22
import { PageTitle } from '@app/components/common/PageTitle/PageTitle';
33
import { BaseRow } from '@app/components/common/BaseRow/BaseRow';
4-
import { BaseCol } from '@app/components/common/BaseCol/BaseCol';
54
import ImageModerationSettings from './ImageModerationSettings';
65
import ContentFilterSettings from './ContentFilterSettings';
76
import OllamaSettings from './OllamaSettings';
87
import WalletSettings from './WalletSettings';
98
import GeneralSettings from './GeneralSettings';
109
import RelayInfoSettings from './RelayInfoSettings';
10+
import PushNotificationSettings from './PushNotificationSettings';
1111
import * as S from '@app/pages/DashboardPages/DashboardPage.styles';
1212
import * as PageStyles from '@app/pages/uiComponentsPages/UIComponentsPage.styles';
1313
import { CollapsibleSection } from '@app/components/relay-settings/shared/CollapsibleSection/CollapsibleSection';
@@ -48,6 +48,10 @@ const SettingsPage: React.FC = () => {
4848
<CollapsibleSection header="Wallet Settings">
4949
<WalletSettings />
5050
</CollapsibleSection>
51+
52+
<CollapsibleSection header="Push Notifications">
53+
<PushNotificationSettings />
54+
</CollapsibleSection>
5155
</S.LeftSideCol>
5256

5357
<S.RightSideCol xl={8} xxl={7}>

src/components/settings/layouts/AdvancedSettingsLayout.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import React, { useState } from 'react';
22
import { Button, Space, Spin } from 'antd';
33
import { LiquidBlueButton } from '@app/components/common/LiquidBlueButton';
44
import { BaseRow } from '@app/components/common/BaseRow/BaseRow';
5-
import { BaseCol } from '@app/components/common/BaseCol/BaseCol';
65
import GeneralSettingsPanel from '../panels/GeneralSettingsPanel';
76
import ImageModerationPanel from '../panels/ImageModerationPanel';
87
import ContentFilterPanel from '../panels/ContentFilterPanel';
98
import OllamaPanel from '../panels/OllamaPanel';
109
import WalletPanel from '../panels/WalletPanel';
10+
import PushNotificationPanel from '../panels/PushNotificationPanel';
1111
import useGenericSettings from '@app/hooks/useGenericSettings';
1212
import { CollapsibleSection } from '@app/components/relay-settings/shared/CollapsibleSection/CollapsibleSection';
1313
import { Balance } from '@app/components/relay-dashboard/Balance/Balance';
@@ -118,6 +118,10 @@ const AdvancedSettingsLayout: React.FC<AdvancedSettingsLayoutProps> = ({
118118
<CollapsibleSection header="Wallet">
119119
<WalletPanel />
120120
</CollapsibleSection>
121+
122+
<CollapsibleSection header="Push Notifications">
123+
<PushNotificationPanel />
124+
</CollapsibleSection>
121125

122126
<div style={{ marginTop: '2rem', display: 'flex', justifyContent: 'center' }}>
123127
<Space size="middle">

0 commit comments

Comments
 (0)