feat: search city & privacy checkbox remove

This commit is contained in:
eleanor.mao
2025-04-22 22:41:22 +08:00
parent 744928fab7
commit d3f8ae6fae
9 changed files with 375 additions and 29 deletions

View File

@ -77,7 +77,8 @@ function ProfileIntentionFragment(props: IProps, ref) {
const handleClickAddCity = useCallback(() => {
const currentCity = getCurrentCity();
navigateTo(PageUrl.CitySearch, { city: currentCity, source: OpenSource.AddIndentCity });
realtimeLogger.info('handleClickAddCity', OpenSource.AddIndentCity);
navigateTo(PageUrl.CitySearchProfile, { city: currentCity, source: OpenSource.AddIndentCity });
}, []);
const handleSelectCity = useCallback(
@ -85,9 +86,9 @@ function ProfileIntentionFragment(props: IProps, ref) {
log('handleSelectCity', data);
realtimeLogger.info('handleSelectCity', data);
const { openSource, cityCode: code } = data;
if (openSource !== OpenSource.AddIndentCity) {
return;
}
// if (openSource !== OpenSource.AddIndentCity) {
// return;
// }
const newCodes = [...new Set([...cityCodes, code])];
setCityCodes(newCodes);
},