Skip to content

Commit

Permalink
Add missing video avatar support to filters list
Browse files Browse the repository at this point in the history
  • Loading branch information
xpaczka committed Dec 19, 2023
1 parent 460e962 commit 2a15b7b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions ui/components/Shared/SharedToggleItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from "@tallyho/tally-background/lib/utils"
import React, { ReactElement } from "react"
import SharedToggleButton from "./SharedToggleButton"
import SharedAvatar from "./SharedAvatar"

export const STARS_GREY_URL = "./images/stars_grey.svg"

Expand All @@ -23,7 +24,12 @@ export default function SharedToggleItem({
return (
<div className="content" data-testid="toggle_item">
<div className="text_wrap">
<div className="thumbnail" role="img" />
<SharedAvatar
avatarURL={thumbnailURL}
backupAvatar="STARS_GREY_URL"
width="32px"
borderRadius="4px"
/>
<label className="label ellipsis">
{isProbablyEVMAddress(label) ? truncateAddress(label) : label}
</label>
Expand All @@ -44,14 +50,6 @@ export default function SharedToggleItem({
gap: 8px;
width: 85%;
}
.thumbnail {
background: url("${thumbnailURL || STARS_GREY_URL}") center no-repeat;
background-size: cover;
width: 32px;
height: 32px;
border-radius: 4px;
flex-shrink: 0;
}
.label {
margin-top: 0;
font-weight: 500;
Expand Down

0 comments on commit 2a15b7b

Please sign in to comment.