Skip to content

Commit e0f04bc

Browse files
committed
fix: Update TabIcon type definitions to use HugeIconProps for better type safety
1 parent 30d07d2 commit e0f04bc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/screens/index.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { PaddingBottom } from '@components/SafePadding'
2+
import { HugeIconProps } from '@hugeicons/constants'
23
import Home01Icon from '@hugeicons/Home01Icon'
34
import Saturn01Icon from '@hugeicons/Saturn01Icon'
45
import TestTube01Icon from '@hugeicons/TestTube01Icon'
@@ -140,15 +141,15 @@ type TabIconT = {
140141
focused: boolean
141142
color: string
142143
size: number
143-
focusedIcon: React.ComponentType<any>
144-
defaultIcon: React.ComponentType<any>
144+
focusedIcon: React.ComponentType<HugeIconProps>
145+
defaultIcon: React.ComponentType<HugeIconProps>
145146
}
146147

147148
function TabIcon({ focused, color, size, focusedIcon: FocusedIcon, defaultIcon: DefaultIcon }: TabIconT) {
148149
return focused ? (
149-
<FocusedIcon height={size} width={size} color={color} />
150+
<FocusedIcon size={size} color={color} variant='solid-rounded' />
150151
) : (
151-
<DefaultIcon height={size} width={size} color={color} />
152+
<DefaultIcon size={size} color={color} strokeWidth={1.7} />
152153
)
153154
}
154155

0 commit comments

Comments
 (0)