add auto-selecotr to home page and handle set in data, search in specialties and send req for filter && add locations and change text

This commit is contained in:
Ehsan
2025-09-15 19:45:39 +03:30
parent 153cb5bc9f
commit 41ba7aa709
14 changed files with 88 additions and 62 deletions
@@ -20,9 +20,15 @@ function AutoCompleteSearch({
handleSearch(newInputValue);
}}
onChange={(event, newValue) => {
setSelectedOption(newValue);
setSelectedOption && setSelectedOption(newValue);
handleSearch(newValue ? newValue.name : "");
}}
renderOption={(props, option) => (
<li {...props} key={option.id}>
{" "}
{option.name}
</li>
)}
sx={{
"& .MuiAutocomplete-input": {
background: "#ffffff !important",