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", "name": "primal-web-app",
"version": "0.77.20", "version": "0.77.23",
"description": "", "description": "",
"scripts": { "scripts": {
"start": "vite", "start": "vite",

View File

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

View File

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

View File

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