memoize options
This commit is contained in:
1 parent
7dd378f085
commit
521827e1d0
4 files changed
+111
-83
No files matched your search
@@ -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,
|
||||
}));
|
||||
Reference in new issue
Block a user