Hide networking button (#2340)

hide networking button
This commit is contained in:
Utku 2024-04-16 23:06:55 -04:00 committed by GitHub
parent 544f275e49
commit 3505f33448
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -288,11 +288,11 @@ export const Component = () => {
/> />
</div> </div>
</Setting> */} </Setting> */}
<div className="flex flex-col gap-4"> {/* <div className="flex flex-col gap-4">
<h1 className="mb-3 text-lg font-bold text-ink">{t('networking')}</h1> <h1 className="mb-3 text-lg font-bold text-ink">{t('networking')}</h1> */}
{/* TODO: Add some UI for this stuff */} {/* TODO: Add some UI for this stuff */}
{/* {node.data?.p2p.ipv4.status === 'Listening' || {/* {node.data?.p2p.ipv4.status === 'Listening' ||
node.data?.p2p.ipv4.status === 'Enabling' node.data?.p2p.ipv4.status === 'Enabling'
? `0.0.0.0:${node.data?.p2p.ipv4?.port || 0}` ? `0.0.0.0:${node.data?.p2p.ipv4?.port || 0}`
: ''} : ''}
@ -301,7 +301,7 @@ export const Component = () => {
? `[::1]:${node.data?.p2p.ipv6?.port || 0}` ? `[::1]:${node.data?.p2p.ipv6?.port || 0}`
: ''} */} : ''} */}
<Setting {/* <Setting
mini mini
title={t('enable_networking')} title={t('enable_networking')}
description={ description={
@ -315,7 +315,6 @@ export const Component = () => {
</> </>
} }
> >
{/* TODO: Switch doesn't handle optional fields correctly */}
<Switch <Switch
size="md" size="md"
// checked={watchP2pEnabled || false} // checked={watchP2pEnabled || false}
@ -323,8 +322,8 @@ export const Component = () => {
// disabled // disabled
onClick={() => toast.info(t('coming_soon'))} onClick={() => toast.info(t('coming_soon'))}
/> />
</Setting> </Setting> */}
{/* <Setting {/* <Setting
mini mini
title={t('networking_port')} title={t('networking_port')}
description={t('networking_port_description')} description={t('networking_port_description')}
@ -367,7 +366,7 @@ export const Component = () => {
/> />
</div> </div>
</Setting> */} </Setting> */}
</div> {/* </div> */}
</FormProvider> </FormProvider>
); );
}; };