From 72cceb64c890080abd460aa09e2e7f964f0118b2 Mon Sep 17 00:00:00 2001 From: Bochkovskyi Date: Tue, 23 Jan 2024 22:11:40 +0200 Subject: [PATCH] move IconProps interface to the Icons component --- src/components/ui/icons.tsx | 7 ++++++- src/types/interfaces/IconProps.ts | 8 -------- 2 files changed, 6 insertions(+), 9 deletions(-) delete mode 100644 src/types/interfaces/IconProps.ts diff --git a/src/components/ui/icons.tsx b/src/components/ui/icons.tsx index 2cabfe9..dd51db1 100644 --- a/src/components/ui/icons.tsx +++ b/src/components/ui/icons.tsx @@ -1,5 +1,10 @@ -import IconProps from '@/types/interfaces/IconProps' +import IconSize from '@/types/enums/IconSize' import { getIconDimension } from '@/utils' +import { HTMLAttributes } from 'react' + +interface IconProps extends HTMLAttributes { + size?: IconSize +} export const Icons = { check: ({ size, ...props }: IconProps) => { diff --git a/src/types/interfaces/IconProps.ts b/src/types/interfaces/IconProps.ts deleted file mode 100644 index 6626329..0000000 --- a/src/types/interfaces/IconProps.ts +++ /dev/null @@ -1,8 +0,0 @@ -import IconSize from '@/types/enums/IconSize' -import { HTMLAttributes } from 'react' - -interface IconProps extends HTMLAttributes { - size?: IconSize -} - -export default IconProps