Kimmo Puputti
a996f154d1
Import PropTypes from the prop-types package
2017-10-17 09:50:22 +03:00
Kimmo Puputti
90ab9c9a69
Format with latest Prettier
2017-10-13 10:11:51 +03:00
Kimmo Puputti
78de6d9d69
Disable deprecated proptype import lint error
2017-10-12 14:09:02 +03:00
Hannu Lyytikainen
ae62d9bbbd
Fix booking own listing
...
Event from the form submit handler is also passed to the submit handler
obtained in the props.
2017-10-10 18:24:16 +03:00
Hannu Lyytikainen
8571f329ba
Add a null check for a function from props
...
Also a typo/casing fix to comments
2017-10-10 10:58:29 +03:00
Hannu Lyytikainen
a7f8160091
Move date range picker input names to date utils
2017-10-06 16:26:09 +03:00
Hannu Lyytikainen
5994d56807
Change booking button behaviour
...
If no start or end date is missing for the booking instead of being
disabled the booking button when clicked moves focus to the date picker.
2017-10-06 16:26:09 +03:00
Kimmo Puputti
4a3983f77e
Use Form instead of form
2017-10-05 10:31:41 +03:00
Kimmo Puputti
0c7b8ca355
Use transaction lastTransition instead of state
2017-10-02 15:50:38 +03:00
Kimmo Puputti
340d9c3aea
Merge pull request #380 from sharetribe/closed-listing-status
...
Add listing closed status to listing page
2017-09-07 08:25:15 +03:00
Hannu Lyytikainen
2748d68773
Add own listing text for BookingDatesForm
2017-09-06 15:53:43 +03:00
Kimmo Puputti
fb305e42fe
Use the whole tx and booking objects breakdown
2017-09-05 15:40:28 +03:00
Kimmo Puputti
1b86113895
Change fn name to convey that it only deals with nightly bookings
2017-09-05 12:21:07 +03:00
Kimmo Puputti
9392e7cd85
Create a fake tx object for the breakdown estimation
2017-09-01 14:32:21 +03:00
Kimmo Puputti
5385cc82e2
Use react-intl for date formatting
2017-09-01 14:28:12 +03:00
Kimmo Puputti
1b64089f0a
Add missing tx state
2017-08-31 11:34:45 +03:00
Kimmo Puputti
178937ab27
Try not to pass around subUnitDivisor
2017-08-28 11:14:22 +03:00
Kimmo Puputti
55e9574ce8
Avoid passing around currencyConfig
2017-08-25 10:59:15 +03:00
Kimmo Puputti
a214a04901
Remove subUnitDivisor from convertMoneyToNumber params
2017-08-25 10:09:52 +03:00
Vesa Luusua
90302b7687
Don't show price breakdown title without breakdown
2017-07-05 15:51:15 +03:00
Vesa Luusua
8c7fcb62a1
BookingDatesForm had a missig price breakdown title
2017-07-04 16:22:02 +03:00
Vesa Luusua
29458624fe
BookingDatesForm fixed to follow design.
2017-07-03 12:23:21 +03:00
Vesa Luusua
adcc5f9277
run prettier
2017-07-02 10:24:46 +03:00
Mikko Koski
096af7c766
Fix merge conflicts and run prettier
2017-07-02 10:23:37 +03:00
Mikko Koski
5ac536a5ae
Update tests and test data
2017-07-02 10:22:26 +03:00
Mikko Koski
227aef9cf5
Make pretransaction breakdown to use line items
2017-07-02 10:03:35 +03:00
Vesa Luusua
2fe32ee55b
BookingDatesForm changed to take in DateRangeInputField
2017-06-30 11:28:25 +03:00
Kimmo Puputti
3c2b0f528f
Remove pristine check from disabled state
2017-06-29 15:33:25 +03:00
Kimmo Puputti
d909843d4f
Refactor booking info calculations
2017-06-29 11:25:02 +03:00
Kimmo Puputti
e12f2bedd6
Validate price and currency, add total price to breakdown
2017-06-29 11:13:28 +03:00
Kimmo Puputti
4971edafb5
Rename BookingInfo refs to BookingBreakdown
2017-06-29 11:13:28 +03:00
Kimmo Puputti
b9c0c73c2e
Use DateInputField, adjust styles
2017-06-27 10:52:50 +03:00
Kimmo Puputti
b9943f1b53
Change reduxForm call form argument name
...
- Since the form name can be overriden with component props, the
initial name is just a default, this changes the var name to
communicate that
Note: The names of the forms with selectors cannot be changed,
otherwise the selector doesn't find the correct data from the Redux
store with the initial form name.
2017-05-08 14:59:09 +03:00
Kimmo Puputti
afe2389066
Unify mapStateToProps functions
2017-05-02 11:03:26 +03:00
Vesa Luusua
7db7bd4317
Handle nightpicker end date selection and run format on BookingDatesForm
2017-04-12 16:47:01 +03:00
Vesa Luusua
602925f340
Handle no-price on BookingDatesForm
2017-04-12 16:46:53 +03:00
Vesa Luusua
8ee08695b3
Refactoring after review comments.
2017-04-07 16:20:31 +03:00
Vesa Luusua
fe77a2e2d2
BookingDatesForm (shows inputs for start & end dates + booking calculations)
2017-04-07 12:02:54 +03:00