feat: update AvatarPlaceholder to take size prop
This commit is contained in:
committed by
Austin McKinley
parent
4a1c529ae9
commit
0046b00780
@@ -174,7 +174,7 @@ export function Avatar({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function AvatarPlaceholder() {
|
export function AvatarPlaceholder({size = 40}: {size?: number}) {
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
return (
|
return (
|
||||||
<View
|
<View
|
||||||
@@ -182,8 +182,8 @@ export function AvatarPlaceholder() {
|
|||||||
a.rounded_full,
|
a.rounded_full,
|
||||||
t.atoms.bg_contrast_25,
|
t.atoms.bg_contrast_25,
|
||||||
{
|
{
|
||||||
width: 40,
|
width: size,
|
||||||
height: 40,
|
height: size,
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user