From c08bd91e5f1a96e1b1764c7ae3cb1a58bd1ff8ef Mon Sep 17 00:00:00 2001 From: zwkang Date: Fri, 3 May 2024 23:48:30 +0800 Subject: [PATCH] chore(icon): change icon example type --- src/icon/_example/Enhanced.tsx | 4 ++-- src/icon/_example/IconFontEnhanced.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/icon/_example/Enhanced.tsx b/src/icon/_example/Enhanced.tsx index af43d03db..5163581b0 100644 --- a/src/icon/_example/Enhanced.tsx +++ b/src/icon/_example/Enhanced.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import { Icon } from 'tdesign-icons-react'; +import { Icon, IconProps } from 'tdesign-icons-react'; -const CustomUrlIcon = ({ name, size, style }) => ( +const CustomUrlIcon = ({ name, size, style }: Partial>) => ( ); diff --git a/src/icon/_example/IconFontEnhanced.tsx b/src/icon/_example/IconFontEnhanced.tsx index 7a261bcef..208e2485b 100644 --- a/src/icon/_example/IconFontEnhanced.tsx +++ b/src/icon/_example/IconFontEnhanced.tsx @@ -1,7 +1,7 @@ import React from 'react'; -import { IconFont } from 'tdesign-icons-react'; +import { IconFont, IconProps } from 'tdesign-icons-react'; -const CustomUrlIconFont = ({ name, size, style }) => ( +const CustomUrlIconFont = ({ name, size, style }: Partial>) => ( );