Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed May 4, 2022
1 parent afef6f2 commit 1a9a495
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions docs/pages/experiments/material-ui/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ export default function CssVarsTemplate() {
placeSelf: 'center',
},
}}
>
{COLORS.map((color: string) => (
<Icon color={color as IconProps['color']}>star</Icon>
))}
>
{COLORS.map((color: string) => (
<Icon key={`color-${color}`} color={color as IconProps['color']}>
star
</Icon>
))}
</Box>
</Container>
</CssVarsProvider>
);
}
}
2 changes: 1 addition & 1 deletion packages/mui-material/src/Icon/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const IconRoot = styled('span', {
// TODO v5 deprecate, v6 remove for sx
color: {
primary: (theme.vars || theme).palette.primary.main,
secondary:(theme.vars || theme).palette.secondary.main,
secondary: (theme.vars || theme).palette.secondary.main,
info: (theme.vars || theme).palette.info.main,
success: (theme.vars || theme).palette.success.main,
warning: (theme.vars || theme).palette.warning.main,
Expand Down

0 comments on commit 1a9a495

Please sign in to comment.