Skip to content

Commit

Permalink
move IconProps interface to the Icons component
Browse files Browse the repository at this point in the history
  • Loading branch information
firehawk89 committed Jan 23, 2024
1 parent 886e6f4 commit 72cceb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 6 additions & 1 deletion src/components/ui/icons.tsx
Original file line number Diff line number Diff line change
@@ -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<SVGElement> {
size?: IconSize
}

export const Icons = {
check: ({ size, ...props }: IconProps) => {
Expand Down
8 changes: 0 additions & 8 deletions src/types/interfaces/IconProps.ts

This file was deleted.

0 comments on commit 72cceb6

Please sign in to comment.