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

[docs] Material Icon Imports wrong in docs #42534

Closed
BreezySMX opened this issue Jun 5, 2024 · 1 comment
Closed

[docs] Material Icon Imports wrong in docs #42534

BreezySMX opened this issue Jun 5, 2024 · 1 comment
Labels
package: icons Specific to @mui/icons support: docs-feedback Feedback from documentation page

Comments

@BreezySMX
Copy link

BreezySMX commented Jun 5, 2024

Related page

https://mui.com/material-ui/material-icons/?query=playlist

Kind of issue

Broken demo

Issue description

Using the MUI Icons docs located here: https://mui.com/material-ui/material-icons/?query=playlist

And clicking PlaylistAdd and PaylistRemove, presents the following import:

import PlaylistAddIcon from '@mui/icons-material/PlaylistAdd';
import PlaylistRemoveIcon from '@mui/icons-material/PlaylistRemove';

However this is incorrect. It should be:

import PlaylistAdd from '@mui/icons-material/PlaylistAdd';
import PlaylistRemove from '@mui/icons-material/PlaylistRemove';

I'm new to js/react/mui, but I'm pretty sure I have the most up to date version of Material Icons, from my package-lock.json:

        "@material-ui/styled-engine": "^5.0.0-alpha.11",
        "@mui/icons-material": "^5.15.19",
        "@mui/material": "^5.15.18",
        "@mui/x-charts": "^7.5.1",

Context

Just use icons on my buttons.

Search keywords: Material Icon Imports wrong in docs

@BreezySMX BreezySMX added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: docs-feedback Feedback from documentation page labels Jun 5, 2024
@zannager zannager added the package: icons Specific to @mui/icons label Jun 6, 2024
@ZeeshanTamboli
Copy link
Member

Why is this incorrect? It's a default export and can be imported with any name.

@ZeeshanTamboli ZeeshanTamboli removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jun 23, 2024
@ZeeshanTamboli ZeeshanTamboli closed this as not planned Won't fix, can't repro, duplicate, stale Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: icons Specific to @mui/icons support: docs-feedback Feedback from documentation page
Projects
None yet
Development

No branches or pull requests

4 participants