mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: moving props spread
This commit is contained in:
parent
8bfd6e5547
commit
69f4ce821f
1 changed files with 1 additions and 3 deletions
|
@ -19,14 +19,12 @@ export function Avatar({ size, alt, src, ...props }: AvatarProps) {
|
||||||
<div className="profile-avatar" style={{ width: size, height: size }}>
|
<div className="profile-avatar" style={{ width: size, height: size }}>
|
||||||
{src ? (
|
{src ? (
|
||||||
<img
|
<img
|
||||||
|
{...props}
|
||||||
className="profile-avatar__image"
|
className="profile-avatar__image"
|
||||||
alt={alt}
|
alt={alt}
|
||||||
src={src}
|
src={src}
|
||||||
width={size}
|
width={size}
|
||||||
height={size}
|
height={size}
|
||||||
{...props}
|
|
||||||
width={size}
|
|
||||||
height={size}
|
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<PersonIcon size={size * 0.7} />
|
<PersonIcon size={size * 0.7} />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue