Fix verification check display in Note header

This commit is contained in:
Bojan Mojsilovic 2024-01-15 16:01:04 +01:00
parent d3fe74e3c8
commit 959bce3db2
3 changed files with 11 additions and 2 deletions

View File

@ -221,6 +221,13 @@
} }
} }
.verificationFailed {
display: inline-block;
width: 4px;
height: 4px;
}
@media only screen and (max-width: 720px) { @media only screen and (max-width: 720px) {
.note { .note {
width: 100dvw; width: 100dvw;

View File

@ -32,7 +32,9 @@ const NoteAuthorInfo: Component<{
{authorName(props.author)} {authorName(props.author)}
</span> </span>
<VerificationCheck user={props.author} /> <VerificationCheck user={props.author} fallback={
<div class={styles.verificationFailed}></div>
} />
<Show <Show
when={props.author.nip05} when={props.author.nip05}

View File

@ -13,7 +13,7 @@ const VerificationCheck: Component<{
id?: string, id?: string,
}> = (props) => { }> = (props) => {
const [isVerified, setIsVerified] = createSignal(true); const [isVerified, setIsVerified] = createSignal(false);
const isVerifiedByPrimal = () => { const isVerifiedByPrimal = () => {
const nip05 = props.user?.nip05; const nip05 = props.user?.nip05;