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:
Ehsan
2025-05-29 05:07:11 +03:30
parent c8e8048d6c
commit e12e6c171c
18 changed files with 313 additions and 34 deletions
+3 -1
View File
@@ -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={{
+2 -2
View File
@@ -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);
}