Skip to content

Commit

Permalink
[docs-infra] Repare icon selection
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfauquette committed Jan 31, 2024
1 parent e526ccf commit 8f35178
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions docs/data/material/components/material-icons/SearchIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ const FontSizeComponent = styled('span')(({ theme }) => ({
}));

const ContextComponent = styled('div', {
shouldForwardProp: (prop) => prop !== 'contextColor',
shouldForwardProp: (prop) => !['contextColor', 'as'].includes(prop),
})(({ theme, contextColor }) => ({
margin: theme.spacing(0.5),
padding: theme.spacing(1, 2),
Expand Down Expand Up @@ -268,6 +268,7 @@ const DialogDetails = React.memo(function DialogDetails(props) {

setCopied(true);
};
// console.log();

return (
<Dialog fullWidth maxWidth="sm" open={open} onClose={handleClose}>
Expand Down Expand Up @@ -309,7 +310,7 @@ const DialogDetails = React.memo(function DialogDetails(props) {
<Grid container>
<Grid item xs>
<Grid container justifyContent="center">
<CanvasComponent component={selectedIcon.Component} />
<CanvasComponent as={selectedIcon.Component} />
</Grid>
</Grid>
<Grid item xs>
Expand Down Expand Up @@ -338,31 +339,31 @@ const DialogDetails = React.memo(function DialogDetails(props) {
</Grid>
<Grid container justifyContent="center">
<ContextComponent
component={selectedIcon.Component}
as={selectedIcon.Component}
contextColor="primary"
/>
<ContextComponent
component={selectedIcon.Component}
as={selectedIcon.Component}
contextColor="primaryInverse"
/>
</Grid>
<Grid container justifyContent="center">
<ContextComponent
component={selectedIcon.Component}
as={selectedIcon.Component}
contextColor="textPrimary"
/>
<ContextComponent
component={selectedIcon.Component}
as={selectedIcon.Component}
contextColor="textPrimaryInverse"
/>
</Grid>
<Grid container justifyContent="center">
<ContextComponent
component={selectedIcon.Component}
as={selectedIcon.Component}
contextColor="textSecondary"
/>
<ContextComponent
component={selectedIcon.Component}
as={selectedIcon.Component}
contextColor="textSecondaryInverse"
/>
</Grid>
Expand Down

0 comments on commit 8f35178

Please sign in to comment.