Skip to content

Conversation

elikeyz
Copy link

@elikeyz elikeyz commented Sep 26, 2025

Fixes #46971

Screenshot 2025-09-26 at 19 23 52

@elikeyz elikeyz changed the title Resolve Typo on InfoOutlined Import Name [docs] Resolve Typo on InfoOutlined Import Name Sep 26, 2025
@elikeyz
Copy link
Author

elikeyz commented Sep 26, 2025

This PR is ready for review @mj12albert

@zannager zannager added docs Improvements or additions to the documentation. scope: icons Changes related to the icons. labels Sep 30, 2025
@zannager zannager requested a review from mj12albert September 30, 2025 12:09
copyButtonHidden
onClick={handleClick(2)}
code={`import ${selectedIcon.importName}Icon from '@mui/icons-material/${selectedIcon.importName}';`}
code={`import ${selectedIcon.importName}Icon from '@mui/icons-material/${selectedIcon.importName}${selectedIcon.importName === 'InfoOutline' ? 'd' : ''}';`}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems better to correct the typo at the source

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the same variable is being used, changing it at the source would result in

import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';

instead of

import InfoOutlineIcon from '@mui/icons-material/InfoOutlined';

Would this be acceptable? @mj12albert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation. scope: icons Changes related to the icons.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[docs] InfoOutlineIcon import demo typo
3 participants