-
Notifications
You must be signed in to change notification settings - Fork 34
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
Adds timezone support to DatePicker #2293
Adds timezone support to DatePicker #2293
Conversation
export const useOdysseyDateFields = ({ | ||
defaultValue, | ||
isDateEnabled = () => true, | ||
isMonthEnabled = () => true, | ||
isYearEnabled = () => true, | ||
minDate: minDateProp, | ||
maxDate: maxDateProp, |
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.
I skimmed this file. I'm gonna assume it's good.
e513073
to
56b2c3a
Compare
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.
Code is fine. We've reviewed it, and it's good!
I'm concerned about the 5-second time before the error displays. I'd like to only have it on Blur or talk to other design folks and see what they think. We don't have this anywhere else (displaying an error message ourselves), so I'd like to get confirmation.
We should also look at potentially adding more validation functionality to Odyssey if we want it to function a certain way.
(validationError) => { | ||
const timeoutId = setTimeout(() => { | ||
setDisplayedErrorMessage(validationError); | ||
}, 5000); |
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.
We should put this 5000
as a constant at the top of the file.
05bb779
to
b03118b
Compare
OKTA-729288
Summary
Adds time zone support by
timeZone, timezoneOptions, timeZoneLabel
props.TimeZonePicker
iftimezoneOptions
are provided.Testing & Screenshots