feat: search city & privacy checkbox remove
This commit is contained in:
@ -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);
|
||||
},
|
||||
|
Reference in New Issue
Block a user