1- import React , { useEffect , useState } from 'react' ;
1+ import React , { useEffect , useState } from 'react' ;
22import { Form , Input , Select , Tooltip } from 'antd' ;
3- import { QuestionCircleOutlined , InfoCircleOutlined , UserOutlined , KeyOutlined , UploadOutlined } from '@ant-design/icons' ;
3+ import {
4+ QuestionCircleOutlined ,
5+ InfoCircleOutlined ,
6+ UserOutlined ,
7+ KeyOutlined ,
8+ UploadOutlined ,
9+ } from '@ant-design/icons' ;
410import useGenericSettings from '@app/hooks/useGenericSettings' ;
511import { SettingsGroupType } from '@app/types/settings.types' ;
612import BaseSettingsForm from './BaseSettingsForm' ;
713import * as S from './Settings.styles' ;
14+ import { ComingSoonWrapper } from '@app/styles/themes/reusableComponentStyles' ;
815const { Option } = Select ;
916const { TextArea } = Input ;
1017
1118const RelayInfoSettings : React . FC = ( ) => {
1219 const { settings, loading, error, fetchSettings, updateSettings, saveSettings } = useGenericSettings ( 'relay_info' ) ;
13- const [ image , setImage ] = useState < string | null > ( null ) ;
20+ const [ image , setImage ] = useState < string | null > ( null ) ;
1421 const [ form ] = Form . useForm ( ) ;
1522
1623 // Update form values when settings change
@@ -25,7 +32,8 @@ const RelayInfoSettings: React.FC = () => {
2532 updateSettings ( changedValues ) ;
2633 } ;
2734
28- const onUploadIcon = ( url : string ) => { // use as onUploadIcon prop in Upload Component
35+ const onUploadIcon = ( url : string ) => {
36+ // use as onUploadIcon prop in Upload Component
2937 setImage ( url ) ;
3038 } ;
3139
@@ -76,24 +84,34 @@ const RelayInfoSettings: React.FC = () => {
7684 >
7785 < S . InputFieldWithPrefix prefix = { < InfoCircleOutlined /> } placeholder = "My Nostr Relay" />
7886 </ Form . Item >
79- < Form . Item
80- name = "relayIcon"
81- label = {
82- < span >
83- Relay Icon
84- < Tooltip title = "An icon representing your relay" >
85- < QuestionCircleOutlined />
86- </ Tooltip >
87- </ span >
88- }
89- >
90- < S . InputFieldWithPrefix
91- suffix = { < S . UploadButton size = 'small' aria-label = 'Upload Relay Icon' icon = { < UploadOutlined /> } > Upload Relay Icon</ S . UploadButton > }
92- />
93- { image && (
94- < S . UploadedImageWrapper > < img src = { image } alt = "" /> </ S . UploadedImageWrapper >
95- ) }
96- </ Form . Item >
87+ < ComingSoonWrapper >
88+ < Form . Item
89+ name = "relayIcon"
90+ label = {
91+ < span >
92+ Relay Icon
93+ < Tooltip title = "An icon representing your relay" >
94+ < QuestionCircleOutlined />
95+ </ Tooltip >
96+ (Coming Soon)
97+ </ span >
98+ }
99+ >
100+ {
101+ < S . InputFieldWithPrefix
102+ disabled = { true }
103+ placeholder = "https://example.com/relay-icon.png"
104+ // suffix={<S.UploadButton size='small' aria-label='Upload Relay Icon' icon={<UploadOutlined />}
105+ // > Upload Relay Icon</S.UploadButton>}
106+ />
107+ }
108+ { image && (
109+ < S . UploadedImageWrapper >
110+ < img src = { image } alt = "" />
111+ </ S . UploadedImageWrapper >
112+ ) }
113+ </ Form . Item >
114+ </ ComingSoonWrapper >
97115 < Form . Item
98116 name = "relaydescription"
99117 label = {
0 commit comments