memoize options

This commit is contained in:
Alex Holliday committed 2026-08-11 17:50:47 -07:00
1 parent 7dd378f085
commit 521827e1d0
4 files changed
+111 -83

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import timezones from "@/Utils/timezones.json";
export interface TimezoneOption {
id: string;
name: string;
}
// timezones.json uses Mongo-style _id; remap once at module load to the
// { id, name } shape AutoComplete expects.
export const timezoneOptions: TimezoneOption[] = timezones.map((tz) => ({
id: tz._id,
name: tz.name,
}));