From 59ec5b54c746d90af55064f0cbf1854b1058e1b6 Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Fri, 26 Jun 2026 15:45:29 +0330 Subject: [PATCH] up --- src/components/Select.tsx | 37 +++++++++++++------ src/pages/order/List.tsx | 8 ++++ src/pages/order/types/Types.ts | 2 +- .../product/components/CategoriesSelect.tsx | 14 +++++-- 4 files changed, 44 insertions(+), 17 deletions(-) diff --git a/src/components/Select.tsx b/src/components/Select.tsx index d535fbd..1054431 100644 --- a/src/components/Select.tsx +++ b/src/components/Select.tsx @@ -15,28 +15,41 @@ type Props = { readOnly?: boolean, } & SelectHTMLAttributes -const Select: FC = (props: Props) => { +const Select: FC = ({ + className, + items, + error_text, + placeholder, + label, + readOnly, + ...selectProps +}) => { + const isControlled = selectProps.value !== undefined + return (
{ - props.label && + label && }
- { return { label: item.title, value: item.id + '' } }) || []} - {...props} + {...selectProps} /> ) }