diff --git a/src/views/settings/dns-identity/index.tsx b/src/views/settings/dns-identity/index.tsx index 52bc3b9a7..d6bae2daf 100644 --- a/src/views/settings/dns-identity/index.tsx +++ b/src/views/settings/dns-identity/index.tsx @@ -1,9 +1,11 @@ import { ButtonGroup, + Code, Editable, EditableInput, EditablePreview, EditableProps, + Flex, Heading, IconButton, Input, @@ -32,6 +34,8 @@ import useUserMailboxes from "../../../hooks/use-user-mailboxes"; import { useWriteRelays } from "../../../hooks/use-client-relays"; import { COMMON_CONTACT_RELAYS } from "../../../const"; import { usePublishEvent } from "../../../providers/global/publish-provider"; +import RelayFavicon from "../../../components/relay-favicon"; +import RouterLink from "../../../components/router-link"; function EditableControls() { const { isEditing, getSubmitButtonProps, getCancelButtonProps, getEditButtonProps } = useEditableControls(); @@ -142,6 +146,26 @@ function IdentityDetails({ pubkey, profile }: { pubkey: string; profile: Profile {renderDetails()} {loading && } + + {identity?.status === IdentityStatus.Found && ( + <> + + Relays + + + You have {identity.relays?.length ?? 0} relays set in your DNS identity + + + {identity?.relays?.map((url) => ( + + + + {url} + + + ))} + + )} ); } @@ -153,7 +177,19 @@ export default function DnsIdentityView() { const profile = useUserProfile(account.pubkey, undefined, true); return ( - + + What is this? + + } + > {profile?.nip05 ? ( ) : (