feat(frontend): use offline global birth place hierarchy

This commit is contained in:
Jesse_Chen
2026-08-30 15:55:45 +08:00
parent f9a00dc568
commit 5c1d095f69
238 changed files with 655 additions and 42 deletions
+3 -2
View File
@@ -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" : "",