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

[36] Date Time Fixtures #76

Merged
merged 3 commits into from
Aug 21, 2024
Merged

[36] Date Time Fixtures #76

merged 3 commits into from
Aug 21, 2024

Conversation

Drish-xD
Copy link
Collaborator

@Drish-xD Drish-xD commented Aug 13, 2024

Description

  • Add dropdown navigation to date-picker for easy navigation of months & years.

Preview

image

  • Separate Date and time field.

Preview

image

  • Fixed timings for all time zones.

@Drish-xD Drish-xD self-assigned this Aug 13, 2024
@Drish-xD Drish-xD added the enhancement New feature or request label Aug 13, 2024
@Drish-xD Drish-xD changed the title [36] Easy navigation in date-picker [36] Feature: Date Time Aug 16, 2024
@Drish-xD Drish-xD changed the title [36] Feature: Date Time [36] Date Time Fixtures Aug 16, 2024
@@ -93,7 +93,7 @@ const TimePickerInput = React.forwardRef<HTMLInputElement, TimePickerInputProps>
setDate(setDateByType(tempDate, newValue, picker, period));
}
if (e.key >= '0' && e.key <= '9') {
if (picker === '12hours') setPrevIntKey(e.key);
if (picker === 'hours') setPrevIntKey(e.key);
Copy link
Contributor

Choose a reason for hiding this comment

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

what are possible values of picker other than hours

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Previously there are 2 options like 12hours format or 24hours format.

I removed 24hours related code as it was redundant.

Copy link
Contributor

@suryabulusu suryabulusu left a comment

Choose a reason for hiding this comment

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

looks good

@Drish-xD Drish-xD merged commit 9f96277 into main Aug 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants