-
Notifications
You must be signed in to change notification settings - Fork 86
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
DateTime picker implementation #4689
base: develop
Are you sure you want to change the base?
Conversation
Note: z-index fixes aren't applied here so lint will fail |
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 not use interfaces owned by time field(like ITimeFieldConfig). Add separate interface for a new field type. Even if it will be identical at the moment.
Rename "time copy" to something better
return ( | ||
<Container> | ||
<DateTimePicker | ||
dateFormat='MM/DD/YYYY' |
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 not hardcode format - use the one from appConfig
@@ -17,7 +18,7 @@ export class Editor extends React.PureComponent<IProps> { | |||
return ( | |||
<Container> | |||
<DateTimePicker | |||
dateFormat='MM/DD/YYYY' | |||
dateFormat={appConfig.shortDateFormat} |
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.
use appConfig.view.dateformat
STT-109