feat(frontend): use offline global birth place hierarchy
This commit is contained in:
@@ -903,6 +903,7 @@ function BirthLocationFields({ value, onChange }: { value: Profile; onChange: (p
|
||||
<legend>出生地点</legend>
|
||||
<BirthPlacePicker
|
||||
value={{
|
||||
countryCode: value.countryCode,
|
||||
provinceCode: value.provinceCode,
|
||||
cityCode: value.cityCode,
|
||||
districtCode: value.districtCode,
|
||||
@@ -913,13 +914,13 @@ function BirthLocationFields({ value, onChange }: { value: Profile; onChange: (p
|
||||
birthTime={value.reportedTime || value.time}
|
||||
onChange={(location) => onChange({
|
||||
...value,
|
||||
countryCode: "CN",
|
||||
countryCode: location?.countryCode || "CN",
|
||||
provinceCode: location?.provinceCode || "",
|
||||
cityCode: location?.cityCode || "",
|
||||
districtCode: location?.districtCode || "",
|
||||
birthPlaceLabel: location?.label || "",
|
||||
birthPlaceType: location?.placeType || "",
|
||||
birthPlaceProvider: location ? "china_locations" : "",
|
||||
birthPlaceProvider: location?.provider || "",
|
||||
birthPlaceProviderId: location?.providerPlaceId || "",
|
||||
timezoneId: location?.timezoneId || "",
|
||||
timezoneSource: location ? "iana_historical" : "",
|
||||
|
||||
Reference in New Issue
Block a user