From d8c9b6cf9ea6dfbd6506327d67c11b71814c21e5 Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Thu, 28 Nov 2024 17:26:48 -0800 Subject: [PATCH] fix(playground): fix eslint errors in ExampleDocumentsDropdown - Add key prop to MenuItem component\n- Remove unused event parameter from onClick handler --- .../src/ExampleDocumentsDropdown/ExampleDocumentsDropdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playground/src/ExampleDocumentsDropdown/ExampleDocumentsDropdown.tsx b/packages/playground/src/ExampleDocumentsDropdown/ExampleDocumentsDropdown.tsx index 996168c..f5b1774 100644 --- a/packages/playground/src/ExampleDocumentsDropdown/ExampleDocumentsDropdown.tsx +++ b/packages/playground/src/ExampleDocumentsDropdown/ExampleDocumentsDropdown.tsx @@ -57,7 +57,7 @@ const ExampleDocumentsDropdown: React.FC = ({ examples, onChange }) => { >
{examples.map((example: any) => ( - handleMenuItemClick(example)}> + handleMenuItemClick(example)}> {example.name}