Skip to content

feat(measurements): remove date restriction to allow multiple entries per day#1214

Open
sg172003 wants to merge 1 commit intowger-project:masterfrom
sg172003:feature/measurement-datetime-field
Open

feat(measurements): remove date restriction to allow multiple entries per day#1214
sg172003 wants to merge 1 commit intowger-project:masterfrom
sg172003:feature/measurement-datetime-field

Conversation

@sg172003
Copy link

What does this PR do?

Removes the shouldDisableDate restriction in the measurement entry
date picker that was preventing multiple entries on the same day.

Why?

Part of wger-project/wger#2116 — now that the backend allows multiple
measurement entries per day, the frontend restriction is no longer needed.

Changes

  • Removed shouldDisableDate prop from DatePicker in EntryForm.tsx
  • Removed unused dateToYYYYMMDD import

Checklist

  • No breaking changes
  • Follows project code style

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 74.959% (-0.009%) from 74.968%
when pulling 809f8e3 on sg172003:feature/measurement-datetime-field
into b1cdcdb on wger-project:master.

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