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

Open
diego-menezes opened this issue Apr 12, 2024 · 1 comment
Open

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

diego-menezes opened this issue Apr 12, 2024 · 1 comment
Labels
bug Something isn't working

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants