handle register & retry code & edit phone number & fix bug select city and state & add basic modal to all tabs in dashboard
This commit is contained in:
@@ -11,6 +11,7 @@ function AutoCompleteSelect({
|
||||
disabled = false,
|
||||
listboxProps,
|
||||
sendAll,
|
||||
name,
|
||||
}) {
|
||||
return (
|
||||
<Autocomplete
|
||||
@@ -29,7 +30,8 @@ function AutoCompleteSelect({
|
||||
updateData(
|
||||
newValue && sendAll
|
||||
? newValue
|
||||
: (newValue && !sendAll && newValue.label) || ""
|
||||
: (newValue && !sendAll && newValue.label) || "",
|
||||
name
|
||||
);
|
||||
}}
|
||||
sx={{
|
||||
|
||||
@@ -30,12 +30,12 @@ function ModalSearchCity({
|
||||
useEffect(() => {
|
||||
if (provinceSelected) {
|
||||
const selectedState = states.find(
|
||||
(state) => state.label === provinceSelected,
|
||||
(state) => state.label === provinceSelected
|
||||
);
|
||||
if (selectedState) {
|
||||
const stateId = selectedState.id;
|
||||
const filteredCities = cities.filter(
|
||||
(city) => city.province_id === stateId,
|
||||
(city) => city.province_id === stateId
|
||||
);
|
||||
setFilteredCities(filteredCities);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user