From 73c4566c616ec67f2466002108f3422d3e571e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=90=83=E7=8C=AB=E7=9A=84=E9=B1=BC?= Date: Wed, 4 Nov 2020 10:38:27 +0800 Subject: [PATCH] fix: update Avatar src type (#27524) * fix: update Avatar src type * refactor: remove string as ReactNode includes string type --- components/avatar/avatar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/avatar/avatar.tsx b/components/avatar/avatar.tsx index c4d1ee1660..ede30aa31d 100644 --- a/components/avatar/avatar.tsx +++ b/components/avatar/avatar.tsx @@ -20,7 +20,7 @@ export interface AvatarProps { size?: AvatarSize; gap?: number; /** Src of image avatar */ - src?: string; + src?: React.ReactNode; /** Srcset of image avatar */ srcSet?: string; draggable?: boolean;