From ce712c621b6fcc83480af20845270ca36b8786d5 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 8 Aug 2023 09:06:24 +0300 Subject: [PATCH] refactor: convert Icon jsx component to tsx --- src/components/Icon.jsx | 7 ------- src/components/Icon.tsx | 13 +++++++++++++ 2 files changed, 13 insertions(+), 7 deletions(-) delete mode 100644 src/components/Icon.jsx create mode 100644 src/components/Icon.tsx diff --git a/src/components/Icon.jsx b/src/components/Icon.jsx deleted file mode 100644 index be7733c2..00000000 --- a/src/components/Icon.jsx +++ /dev/null @@ -1,7 +0,0 @@ -import { Image } from 'tamagui' - -const Icon = ({ source, width = 16, height = 16, ...props }) => { - return -} - -export default Icon diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx new file mode 100644 index 00000000..c1c1d988 --- /dev/null +++ b/src/components/Icon.tsx @@ -0,0 +1,13 @@ +import { Image } from 'tamagui' + +type IconProps = { + source: string + width?: number + height?: number +} + +const Icon = ({ source, width = 16, height = 16, ...props }: IconProps) => { + return +} + +export default Icon