Skip to content

Commit

Permalink
fix(playground): fix eslint errors in ExampleDocumentsDropdown
Browse files Browse the repository at this point in the history
- Add key prop to MenuItem component\n- Remove unused event parameter from onClick handler
  • Loading branch information
BelfordZ committed Nov 29, 2024
1 parent ddd26bb commit d8c9b6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const ExampleDocumentsDropdown: React.FC<IProps> = ({ examples, onChange }) => {
>
<div style={{ maxWidth: "525px" }}>
{examples.map((example: any) => (
<MenuItem onClick={(event) => handleMenuItemClick(example)}>
<MenuItem key={example.name} onClick={() => handleMenuItemClick(example)}>
<Grid container spacing={0}>
<Grid item xs={12}>
<Typography variant="subtitle1">{example.name}</Typography>
Expand Down

0 comments on commit d8c9b6c

Please sign in to comment.