Skip to content

Commit

Permalink
Hide verification check on various avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
moysa committed Sep 4, 2023
1 parent ef0ac37 commit b0fb874
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "primal-web-app",
"version": "0.77.20",
"version": "0.77.23",
"description": "",
"scripts": {
"start": "vite",
Expand Down
3 changes: 2 additions & 1 deletion src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const Avatar: Component<{
user?: PrimalUser,
highlightBorder?: boolean,
id?: string,
showCheck?: boolean,
}> = (props) => {

const media = useMediaContext();
Expand Down Expand Up @@ -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>
Expand Down
5 changes: 0 additions & 5 deletions src/components/NotificationAvatar/NotificationAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)
}
Expand Down
1 change: 1 addition & 0 deletions src/components/ProfileWidget/ProfileWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const ProfileWidget: Component<{ id?: string }> = (props) => {
<Avatar
size="vs"
user={activeUser()}
showCheck={true}
/>
</div>
<div class={styles.userInfo}>
Expand Down

0 comments on commit b0fb874

Please sign in to comment.