Skip to content
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

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

thecalcc
Copy link
Contributor

STT-109

@thecalcc
Copy link
Contributor Author

Note: z-index fixes aren't applied here so lint will fail

Copy link
Member

@tomaskikutis tomaskikutis left a 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'
Copy link
Member

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}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use appConfig.view.dateformat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants