From 1bd9bf0f7d9a188cc65e3a3b24cdfb729e3d7a94 Mon Sep 17 00:00:00 2001 From: TONE-E <90010906+AnthonyMarin@users.noreply.github.com> Date: Tue, 24 Jun 2025 18:11:02 -0700 Subject: [PATCH 01/17] remove inner border on input fields --- src/components/settings/GeneralSettings.tsx | 5 +- src/components/settings/RelayInfoSettings.tsx | 85 ++++++------------- src/components/settings/Settings.styles.ts | 11 +++ src/components/settings/WalletSettings.tsx | 7 +- 4 files changed, 44 insertions(+), 64 deletions(-) create mode 100644 src/components/settings/Settings.styles.ts diff --git a/src/components/settings/GeneralSettings.tsx b/src/components/settings/GeneralSettings.tsx index 5e21505f..ca510deb 100644 --- a/src/components/settings/GeneralSettings.tsx +++ b/src/components/settings/GeneralSettings.tsx @@ -4,6 +4,7 @@ import { QuestionCircleOutlined, LockOutlined, DatabaseOutlined, TagOutlined } f import useGenericSettings from '@app/hooks/useGenericSettings'; import { SettingsGroupType } from '@app/types/settings.types'; import BaseSettingsForm from './BaseSettingsForm'; +import * as S from './Settings.styles'; const GeneralSettings: React.FC = () => { const { @@ -92,7 +93,7 @@ const GeneralSettings: React.FC = () => { } > - } placeholder="Enter service tag" /> @@ -109,7 +110,7 @@ const GeneralSettings: React.FC = () => { } > - } placeholder="./data/stats.db" /> diff --git a/src/components/settings/RelayInfoSettings.tsx b/src/components/settings/RelayInfoSettings.tsx index fcfaaa71..c7978244 100644 --- a/src/components/settings/RelayInfoSettings.tsx +++ b/src/components/settings/RelayInfoSettings.tsx @@ -4,19 +4,12 @@ import { QuestionCircleOutlined, InfoCircleOutlined, UserOutlined, KeyOutlined } import useGenericSettings from '@app/hooks/useGenericSettings'; import { SettingsGroupType } from '@app/types/settings.types'; import BaseSettingsForm from './BaseSettingsForm'; - +import * as S from './Settings.styles'; const { Option } = Select; const { TextArea } = Input; const RelayInfoSettings: React.FC = () => { - const { - settings, - loading, - error, - fetchSettings, - updateSettings, - saveSettings, - } = useGenericSettings('relay_info'); + const { settings, loading, error, fetchSettings, updateSettings, saveSettings } = useGenericSettings('relay_info'); const [form] = Form.useForm(); @@ -64,12 +57,7 @@ const RelayInfoSettings: React.FC = () => { onSave={saveSettings} onReset={fetchSettings} > -
+ { } - rules={[ - { required: true, message: 'Please enter the relay name' } - ]} + rules={[{ required: true, message: 'Please enter the relay name' }]} > - } - placeholder="My Nostr Relay" - /> + } placeholder="My Nostr Relay" /> { } > -