save data modal search-city and show default value
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user