save data modal search-city and show default value

This commit is contained in:
ehsan
2025-05-02 15:21:08 +03:30
parent ee47314658
commit 54c0832612
4 changed files with 52 additions and 43 deletions
+10 -1
View File
@@ -2,9 +2,18 @@ import BottomSelect from "@/components/icons/BottomSelect";
import { Autocomplete, Button, TextField } from "@mui/material";
import { styleTextSelectRight } from "@/mui";
function AutoCompleteSelect({ list, isError, updateData, name, label, disabled = false }) {
function AutoCompleteSelect({
list,
value,
isError,
updateData,
name,
label,
disabled = false,
}) {
return (
<Autocomplete
value={value || null}
disablePortal
options={list}
disabled={disabled}