Skip to content

Commit

Permalink
chore: update types of AvatarPropsType
Browse files Browse the repository at this point in the history
make wight/height optional number only.
next/image v14+ don't support string for their width/height props.
  • Loading branch information
kopach committed Dec 20, 2024
1 parent f020452 commit 4154eed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export const ICON_SIZE = {
} as const;

export type AvatarPropsType = {
width?: number;
height?: number;
size?: AvatarSizeType;
border?: boolean;
spaced?: boolean;
Expand All @@ -41,6 +43,8 @@ export type AvatarPropsType = {
| 'link'
| 'ariaLinkLabel'
| 'alt'
| 'width'
| 'height'
>;

const Avatar = ({
Expand Down

0 comments on commit 4154eed

Please sign in to comment.