-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/ilkka starting time freely & duration time can be set freely too #175
Feature/ilkka starting time freely & duration time can be set freely too #175
Conversation
…t to the availableroomlist thru bookingview
…st 100% of the width (durationpicker)
…custom button still missing
… so that custom value is seen as additional button and removed when non-custom value selected
…xes so that these both button groups now work
frontend/src/components/DurationTimePickerDrawer/DurationTimePickerDrawer.tsx
Outdated
Show resolved
Hide resolved
frontend/src/components/StartingTimePickerDrawer/StartingTimePickerDrawer.tsx
Outdated
Show resolved
Hide resolved
frontend/src/components/StartingTimePickerDrawer/StartingTimePickerDrawer.tsx
Show resolved
Hide resolved
frontend/src/components/DurationTimePickerDrawer/DurationTimePickerDrawer.tsx
Outdated
Show resolved
Hide resolved
frontend/src/components/AvailableRoomList/AvailableRoomList.tsx
Outdated
Show resolved
Hide resolved
frontend/src/components/DurationTimePickerDrawer/DurationTimePickerDrawer.tsx
Outdated
Show resolved
Hide resolved
frontend/src/components/DurationTimePickerDrawer/DurationTimePickerDrawer.tsx
Outdated
Show resolved
Hide resolved
setStartingTime, | ||
setExpandTimePickerDrawer | ||
} = props; | ||
const [time, setTime] = useState<string>(DateTime.now().toFormat('HH:mm')); |
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.
Olisiko tässä tapauksessa mahdollista hoitaa jotenkin StartingTimePickerDrawerin sisäinen aikaleimojen käsittely DateTime (tai Date) muodossa, ja vasta "setStartingTime"ä kutsuttaessa muuttaa aikaleima string muotoiseksi? Voisi selvitä vähemmällä string muotoisten aikalaiemojen käsittelyllä ja saattaisi helpottaa vertailuoperaatioita jne.
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.
katson myöhemmin refaktoroinnin yhteydessä helpottaisiko se, teen toisen pr:n siitä
Feature/ilkka starting time freely & duration time can be set freely too
in this feature branch there are 2 features (my mistake but does it matter...)
user can select starting time by custom button
and also duration
tests are missing and some minor stuff but I make a separate pr for those