From ff61ec39586527ed8c24d0ff456f107186e51943 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 27 Jun 2024 12:24:57 -0400 Subject: [PATCH] [material-ui][Autocomplete] Fix more React 18.3 key spread warnings in demos (@wbt) (#42766) --- .../components/autocomplete/CheckboxesTags.js | 25 ++--- .../autocomplete/CheckboxesTags.tsx | 25 ++--- .../components/autocomplete/CountrySelect.js | 32 ++++--- .../components/autocomplete/CountrySelect.tsx | 32 ++++--- .../autocomplete/FreeSoloCreateOption.js | 9 +- .../autocomplete/FreeSoloCreateOption.tsx | 9 +- .../FreeSoloCreateOptionDialog.js | 9 +- .../FreeSoloCreateOptionDialog.tsx | 9 +- .../components/autocomplete/GitHubLabel.js | 91 ++++++++++--------- .../components/autocomplete/GitHubLabel.tsx | 91 ++++++++++--------- .../autocomplete/GloballyCustomizedOptions.js | 34 ++++--- .../GloballyCustomizedOptions.tsx | 34 ++++--- .../components/autocomplete/GoogleMaps.js | 6 +- .../components/autocomplete/GoogleMaps.tsx | 6 +- .../components/autocomplete/Highlights.js | 3 +- .../components/autocomplete/Highlights.tsx | 3 +- .../autocomplete/UseAutocomplete.js | 11 ++- .../autocomplete/UseAutocomplete.tsx | 11 ++- .../autocomplete/UseAutocomplete.tsx.preview | 11 ++- .../components/autocomplete/Virtualize.js | 4 +- .../components/autocomplete/Virtualize.tsx | 4 +- 21 files changed, 274 insertions(+), 185 deletions(-) diff --git a/docs/data/material/components/autocomplete/CheckboxesTags.js b/docs/data/material/components/autocomplete/CheckboxesTags.js index a07f37a4c05cd2..df72ec9733c6af 100644 --- a/docs/data/material/components/autocomplete/CheckboxesTags.js +++ b/docs/data/material/components/autocomplete/CheckboxesTags.js @@ -16,17 +16,20 @@ export default function CheckboxesTags() { options={top100Films} disableCloseOnSelect getOptionLabel={(option) => option.title} - renderOption={(props, option, { selected }) => ( -