clearble inputs
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-07-07 19:42:24 +03:30
parent d3943feaf1
commit 0889a61514
12 changed files with 628 additions and 298 deletions
@@ -6,13 +6,14 @@ type Props = {
error_text?: string,
isDisableShowLable?: boolean,
placeholder?: string,
clearable?: boolean,
} & SelectHTMLAttributes<HTMLSelectElement>
const CategoriesSelect: FC<Props> = ({
isDisableShowLable,
placeholder,
error_text,
clearable = true,
...selectProps
}) => {
@@ -23,6 +24,7 @@ const CategoriesSelect: FC<Props> = ({
label={isDisableShowLable ? undefined : 'دسته'}
placeholder={placeholder || 'انتخاب'}
error_text={error_text}
clearable={clearable}
items={categories?.data?.map((item) => {
return {
label: item.title,