Merge branch 'trunk' into feat/partner

* trunk:
  return fixed url
  feat: add checkbox
  feat: add {} to user get
  feat: search city & privacy checkbox remove
This commit is contained in:
eleanor.mao
2025-05-19 14:50:44 +08:00
8 changed files with 371 additions and 6 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);
},