mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-03 02:10:55 +00:00
Fix verification check display in Note header
This commit is contained in:
parent
d3fe74e3c8
commit
959bce3db2
@ -221,6 +221,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.verificationFailed {
|
||||
display: inline-block;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 720px) {
|
||||
.note {
|
||||
width: 100dvw;
|
||||
|
@ -32,7 +32,9 @@ const NoteAuthorInfo: Component<{
|
||||
{authorName(props.author)}
|
||||
</span>
|
||||
|
||||
<VerificationCheck user={props.author} />
|
||||
<VerificationCheck user={props.author} fallback={
|
||||
<div class={styles.verificationFailed}></div>
|
||||
} />
|
||||
|
||||
<Show
|
||||
when={props.author.nip05}
|
||||
|
@ -13,7 +13,7 @@ const VerificationCheck: Component<{
|
||||
id?: string,
|
||||
}> = (props) => {
|
||||
|
||||
const [isVerified, setIsVerified] = createSignal(true);
|
||||
const [isVerified, setIsVerified] = createSignal(false);
|
||||
|
||||
const isVerifiedByPrimal = () => {
|
||||
const nip05 = props.user?.nip05;
|
||||
|
Loading…
Reference in New Issue
Block a user