Hide verification check on various avatars

This commit is contained in:
Bojan Mojsilovic 2023-09-04 15:47:47 +02:00
parent ef0ac3798d
commit b0fb874744
4 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{
"name": "primal-web-app",
"version": "0.77.20",
"version": "0.77.23",
"description": "",
"scripts": {
"start": "vite",

View File

@ -13,6 +13,7 @@ const Avatar: Component<{
user?: PrimalUser,
highlightBorder?: boolean,
id?: string,
showCheck?: boolean,
}> = (props) => {
const media = useMediaContext();
@ -121,7 +122,7 @@ const Avatar: Component<{
<img src={imageSrc()} alt="avatar" onerror={imgError}/>
</div>
</Show>
<Show when={props.user}>
<Show when={props.user && props.showCheck}>
<div class={styles.iconBackground}>
<VerificationCheck user={props.user} />
</div>

View File

@ -52,11 +52,6 @@ const NotificationAvatar: Component<{
>
+{props.number}
</Show>
<Show when={props.verified}>
<div class={styles.iconBackground}>
<div class={styles.verifiedIcon}></div>
</div>
</Show>
</div>
)
}

View File

@ -23,6 +23,7 @@ const ProfileWidget: Component<{ id?: string }> = (props) => {
<Avatar
size="vs"
user={activeUser()}
showCheck={true}
/>
</div>
<div class={styles.userInfo}>