Skip to content

Commit 2103192

Browse files
committed
feat: remove XNostr verification from advanced settings panel
- Removed XNostr panel from AdvancedSettingsLayout - Removed XNostr entry from SettingsNavigation - Removed XNostr entry from SettingsPage - Updated settings.types.ts to remove xnostr from SettingsGroupName This change aligns the UI with backend changes that have removed XNostr verification functionality.
1 parent 9df41c4 commit 2103192

4 files changed

Lines changed: 0 additions & 22 deletions

File tree

src/components/settings/SettingsNavigation.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,6 @@ const settingsTabs: SettingsTab[] = [
9393
icon: <RobotOutlined className="item-icon" />,
9494
path: '/settings/ollama'
9595
},
96-
{
97-
key: 'xnostr',
98-
label: 'XNostr',
99-
icon: <TwitterOutlined className="item-icon" />,
100-
path: '/settings/xnostr'
101-
},
10296
{
10397
key: 'relay_info',
10498
label: 'Relay Info',

src/components/settings/SettingsPage.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
PictureOutlined,
88
ApiOutlined,
99
RobotOutlined,
10-
TwitterOutlined,
1110
InfoCircleOutlined,
1211
WalletOutlined,
1312
GlobalOutlined,
@@ -23,7 +22,6 @@ import WalletSettings from './WalletSettings';
2322
import GeneralSettings from './GeneralSettings';
2423
import RelayInfoSettings from './RelayInfoSettings';
2524
import QueryCacheSettings from './QueryCacheSettings';
26-
import XNostrSettings from './XNostrSettings';
2725

2826
const SettingsContainer = styled.div`
2927
width: 100%;
@@ -175,13 +173,6 @@ const SettingsPage: React.FC = () => {
175173
icon: <RobotOutlined />,
176174
component: <OllamaSettings />
177175
},
178-
{
179-
key: 'xnostr',
180-
path: '/settings/xnostr',
181-
label: 'XNostr',
182-
icon: <TwitterOutlined />,
183-
component: <XNostrSettings />
184-
},
185176
{
186177
key: 'relay_info',
187178
path: '/settings/relay-info',

src/components/settings/layouts/AdvancedSettingsLayout.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import ContentFilterPanel from '../panels/ContentFilterPanel';
99
import NestFeederPanel from '../panels/NestFeederPanel';
1010
import OllamaPanel from '../panels/OllamaPanel';
1111
import WalletPanel from '../panels/WalletPanel';
12-
import XNostrPanel from '../panels/XNostrPanel';
1312
import QueryCachePanel from '../panels/QueryCachePanel';
1413
import useGenericSettings from '@app/hooks/useGenericSettings';
1514

@@ -157,10 +156,6 @@ const AdvancedSettingsLayout: React.FC<AdvancedSettingsLayoutProps> = ({
157156
<WalletPanel />
158157
</Panel>
159158

160-
<Panel header="XNostr Twitter Verification" key="xnostr">
161-
<XNostrPanel />
162-
</Panel>
163-
164159
<Panel header="Query Cache" key="query-cache">
165160
<QueryCachePanel />
166161
</Panel>

src/types/settings.types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export type SettingsGroupName =
9595
| 'content_filter'
9696
| 'nest_feeder'
9797
| 'ollama'
98-
| 'xnostr'
9998
| 'relay_info'
10099
| 'wallet'
101100
| 'general'
@@ -107,7 +106,6 @@ export type SettingsGroupType<T extends SettingsGroupName> =
107106
T extends 'content_filter' ? ContentFilterSettings :
108107
T extends 'nest_feeder' ? NestFeederSettings :
109108
T extends 'ollama' ? OllamaSettings :
110-
T extends 'xnostr' ? XNostrSettings :
111109
T extends 'relay_info' ? RelayInfoSettings :
112110
T extends 'wallet' ? WalletSettings :
113111
T extends 'general' ? GeneralSettings :

0 commit comments

Comments
 (0)