feat: search input

This commit is contained in:
2024-08-24 05:16:43 +03:00
parent 30a96811bb
commit 40769d3664
6 changed files with 30 additions and 13 deletions

View File

@@ -14,7 +14,7 @@ const ClientSelect: FC<Props> = ({value, onChange, withLabel = false}) => {
const options = clients.map(client => ({label: client.name, value: client.id.toString()}))
return (
<Select
searchable
placeholder={"Выберите клиента"}
value={value && options.find(client => client.value == value.id.toString())?.value}
onChange={event => {