Skip to content

Commit

Permalink
[docs][material-ui] Fix key warning in SimpleDialog demo (#38580)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Aug 22, 2023
1 parent 8416530 commit d673fa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/data/material/components/dialogs/SimpleDialogDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ function SimpleDialog(props) {
<DialogTitle>Set backup account</DialogTitle>
<List sx={{ pt: 0 }}>
{emails.map((email) => (
<ListItem disableGutters>
<ListItemButton onClick={() => handleListItemClick(email)} key={email}>
<ListItem disableGutters key={email}>
<ListItemButton onClick={() => handleListItemClick(email)}>
<ListItemAvatar>
<Avatar sx={{ bgcolor: blue[100], color: blue[600] }}>
<PersonIcon />
Expand Down
4 changes: 2 additions & 2 deletions docs/data/material/components/dialogs/SimpleDialogDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ function SimpleDialog(props: SimpleDialogProps) {
<DialogTitle>Set backup account</DialogTitle>
<List sx={{ pt: 0 }}>
{emails.map((email) => (
<ListItem disableGutters>
<ListItemButton onClick={() => handleListItemClick(email)} key={email}>
<ListItem disableGutters key={email}>
<ListItemButton onClick={() => handleListItemClick(email)}>
<ListItemAvatar>
<Avatar sx={{ bgcolor: blue[100], color: blue[600] }}>
<PersonIcon />
Expand Down

0 comments on commit d673fa8

Please sign in to comment.