-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[datetime] Export TIMEZONE_ITEMS
and MINIMAL_TIMEZONE_ITEMS
#7477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
@@ -27,6 +27,7 @@ export { MonthAndYear } from "./common/monthAndYear"; | |||
export type { DayPickerProps } from "./common/reactDayPickerProps"; | |||
export type { TimePickerProps } from "./common/timePickerProps"; | |||
export { TimePrecision } from "./common/timePrecision"; | |||
export { TIMEZONE_ITEMS, MINIMAL_TIMEZONE_ITEMS } from "./common/timezoneItems"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think the names are crisp enough for an addition to the API? We could maybe consider condensing them to something like TIMEZONES
and MINIMAL_TIMEZONES
, maybe also TSDocs on the fields. What do you think?
Export `TIMEZONE_ITEMS` and `MINIMAL_TIMEZONE_ITEMS` from datetimeBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
Generate changelog in
|
06248c6
to
c8fa57a
Compare
Export `TIMEZONE_ITEMS` and `MINIMAL_TIMEZONE_ITEMS` from datetimeBuild artifact links for this commit: documentation | landing | table | demoThis is an automated comment from the deploy-preview CircleCI job. |
Think we could also export Edit: thinking about this more, it could be nice to export a function that takes a IANA timezone string and a timezone format and outputs the nicely formatted string without needing to do the lookup to TimezoneWithNames beforehand. Although, my team's needs on this have changed, so honestly we can just close this PR if wanted as it's not pressing for me anymore. |
Export
TIMEZONE_ITEMS
andMINIMAL_TIMEZONE_ITEMS
lists to allow consumers to construct customized timezone selection components.