Skip to content

Commit

Permalink
fix: identity components lint errors (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyhyco authored Jun 14, 2024
1 parent 2ebad21 commit 754996b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-buttons-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@coinbase/onchainkit": patch
---

- **fix**: fix identity components lint errors. By @kyhyco #555
5 changes: 5 additions & 0 deletions src/identity/components/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export function Avatar({
return (
loadingComponent || (
<svg
role="img"
aria-label="ock-avatar-loading-image"
data-testid="ockAvatarLoadingSvg"
width="32"
height="32"
Expand Down Expand Up @@ -66,6 +68,8 @@ export function Avatar({
<WithAvatarBadge showAttestation={showAttestation} address={address}>
{defaultComponent || (
<svg
role="img"
aria-label="ock-avatar-default-svg"
data-testid="ockAvatarDefaultSvg"
xmlns="http://www.w3.org/2000/svg"
height="32"
Expand All @@ -80,6 +84,7 @@ export function Avatar({

return (
<WithAvatarBadge showAttestation={showAttestation} address={address}>
{/* biome-ignore lint: alt gets assigned */}
<img
className={cn('rounded-full', className)}
loading="lazy"
Expand Down
2 changes: 2 additions & 0 deletions src/identity/components/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export function Badge({
}}
>
<svg
role="img"
aria-label="ock-attestation-icon"
width="12"
height="12"
viewBox="0 0 12 12"
Expand Down

0 comments on commit 754996b

Please sign in to comment.