From aeb962531be7d763d2df715c1c553d010de123a1 Mon Sep 17 00:00:00 2001 From: Nathan Kluth Date: Mon, 4 Dec 2023 13:47:09 -0700 Subject: [PATCH] warnings --- packages/nextjs/app/migration/components.tsx | 1 + .../nextjs/components/ProductPage/ProductVariantSelector.tsx | 1 + packages/shared-ui/components/ProductSort/ProductSort.tsx | 1 + packages/shared-ui/components/Select.tsx | 4 +++- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/nextjs/app/migration/components.tsx b/packages/nextjs/app/migration/components.tsx index ae835b31..d86ad762 100644 --- a/packages/nextjs/app/migration/components.tsx +++ b/packages/nextjs/app/migration/components.tsx @@ -38,6 +38,7 @@ export default function ComponentsPage() {

Select

void; @@ -18,11 +19,12 @@ export interface Props { const itemToString = (item: Option | null) => (item ? item.title : ""); -export function Select({ label, placeholder, options, className, selectedItem, onChange }: Props) { +export function Select({ label, placeholder, options, className, selectedItem, onChange, id }: Props) { const { isOpen, getToggleButtonProps, getLabelProps, getMenuProps, highlightedIndex, getItemProps } = useSelect({ items: options, itemToString, selectedItem, + id, onSelectedItemChange({ selectedItem }) { onChange && onChange(selectedItem); },