From 4154eedc73dd243618c380292cbb69f01888a405 Mon Sep 17 00:00:00 2001 From: Ihor Date: Fri, 20 Dec 2024 21:58:29 +0100 Subject: [PATCH] chore: update types of AvatarPropsType make wight/height optional number only. next/image v14+ don't support string for their width/height props. --- src/components/avatar/Avatar.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/avatar/Avatar.tsx b/src/components/avatar/Avatar.tsx index 1dcaf625bf..5b77fe1d54 100644 --- a/src/components/avatar/Avatar.tsx +++ b/src/components/avatar/Avatar.tsx @@ -23,6 +23,8 @@ export const ICON_SIZE = { } as const; export type AvatarPropsType = { + width?: number; + height?: number; size?: AvatarSizeType; border?: boolean; spaced?: boolean; @@ -41,6 +43,8 @@ export type AvatarPropsType = { | 'link' | 'ariaLinkLabel' | 'alt' + | 'width' + | 'height' >; const Avatar = ({