From a03662fdb231e2865ef6b2ca1ad125d235b57bce Mon Sep 17 00:00:00 2001 From: lerte smith Date: Thu, 31 Oct 2024 17:09:00 +0800 Subject: [PATCH] update Selecte --- .../actify/src/components/Select/Select.tsx | 43 ++++++++----------- 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/packages/actify/src/components/Select/Select.tsx b/packages/actify/src/components/Select/Select.tsx index fc6efe9..f48b9c8 100644 --- a/packages/actify/src/components/Select/Select.tsx +++ b/packages/actify/src/components/Select/Select.tsx @@ -34,6 +34,14 @@ const Select = (props: SelectProps) => { ? state.selectedItem.rendered : 'Select an option' + let Tag = FilledField + if (variant == 'filled') { + Tag = FilledField + } + if (variant == 'outlined') { + Tag = OutlinedField + } + return (
(props: SelectProps) => { isDisabled={props.isDisabled} /> - {variant == 'filled' && ( - - - - - )} - {variant == 'outlined' && ( - - - - - )} + + + + + {state.isOpen && (