feat: move edit modal to its own component, minor changes
Some checks failed
Build and Publish Docker Image / Build and Publish (amd64) (push) Has been cancelled
Build and Publish Docker Image / Build and Publish (arm64) (push) Has been cancelled

This commit is contained in:
limes
2026-08-21 01:05:55 +02:00
parent c6a41f74f3
commit b60f7672e0
3 changed files with 767 additions and 703 deletions

View File

@@ -59,8 +59,15 @@ export function webLocaleToTimezoneLocale(lo: string): languageCode {
}
}
export function regionIdToCountryId(region: number) {
return (region >>> 24) & 0xFF;
}
export function countryIdToUndefinedRegionId(region: number) {
return region * (2 ** 24);
}
export function regionIdToCountryObject(region: number) {
const countryId = (region >>> 24) & 0xFF;
const countryId = regionIdToCountryId(region);
return regions.find(r => r.id === countryId);
}