Skip to content

Commit

Permalink
🐛 fix build error because fallback was not a string
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-unterberg committed Jan 1, 2024
1 parent 21c8f60 commit 3f3f87a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface AppIconProps extends LucideProps {
}

const Icon = ({ icon, ...props }: AppIconProps) => {
const [Component, setComponent] = useState<React.ComponentType<LazyIconIconProps>>(() => <>l</>)
const [Component, setComponent] = useState<React.ComponentType<LazyIconIconProps>>(() => '')

useEffect(() => {
setComponent(() => lazy(() => import('#lib/icons/IconLazyRenderer')))
Expand Down

0 comments on commit 3f3f87a

Please sign in to comment.