mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-01 17:31:13 +00:00
Hide verification check on various avatars
This commit is contained in:
parent
ef0ac3798d
commit
b0fb874744
@ -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",
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -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}>
|
||||||
|
Loading…
Reference in New Issue
Block a user