Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic usage of icons don`t accept any props in 3.2.x #1090

Closed
diego-menezes opened this issue Apr 12, 2024 · 2 comments
Closed

Dynamic usage of icons don`t accept any props in 3.2.x #1090

diego-menezes opened this issue Apr 12, 2024 · 2 comments
Labels
bug Something isn't working more-info-required More information is required to do this

Comments

@diego-menezes
Copy link

In menu on my app i pass a icon on prop and declare dinamicaly like above

const acao = {
url: "#",
nome:  "Home"
icone: IconHome
}

    <NavLink
.....
      component={Link}
      href={acao.url}
      label={acao.nome}
      leftSection={<acao.icone size="2rem" stroke={1.5}/>}
....
    />

But now in 3.2 i got this error because size, stroke or any other props.

TS2322: Type { size: string; stroke: number; } is not assignable to type IntrinsicAttributes & RefAttributes<Icon>
Property size does not exist on type IntrinsicAttributes & RefAttributes<Icon>

but work on npm run dev, but don`t on start...

@BG-Software-BG BG-Software-BG added the bug Something isn't working label Apr 12, 2024
@Fedec96
Copy link

Fedec96 commented Apr 15, 2024

I think this might be a duplicate of #1077
Should be fixed when #1078 gets merged

@BG-Software-BG BG-Software-BG added the more-info-required More information is required to do this label Jul 25, 2024
@BG-Software-BG
Copy link
Member

#1078 is already merged.
Is this issue resolved with that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more-info-required More information is required to do this
Projects
None yet
Development

No branches or pull requests

3 participants