mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Remove old usages of BookingInfo (old wireframes have wrong data)
This commit is contained in:
parent
878bb9266f
commit
174182bc28
6 changed files with 4 additions and 25 deletions
|
|
@ -19,7 +19,7 @@ const defaultProps = {
|
|||
id: 'date',
|
||||
placeholder: 'Date',
|
||||
disabled: false,
|
||||
required: true,
|
||||
required: false,
|
||||
screenReaderInputMessage: '',
|
||||
showClearDate: false,
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ exports[`DateInput matches snapshot 1`] = `
|
|||
onKeyDown={[Function]}
|
||||
placeholder="Date"
|
||||
readOnly={false}
|
||||
required={true}
|
||||
required={false}
|
||||
type="text"
|
||||
value="" />
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React, { PropTypes } from 'react';
|
||||
import { BookingInfo, NamedLink } from '../../components';
|
||||
import { NamedLink } from '../../components';
|
||||
|
||||
import css from './OrderDetailsPanel.css';
|
||||
|
||||
|
|
@ -24,14 +24,13 @@ ContactInfo.propTypes = {
|
|||
};
|
||||
|
||||
const OrderDetailsPanel = props => {
|
||||
const { className, orderId, title, imageUrl, info, contact, confirmationCode } = props;
|
||||
const { className, orderId, title, imageUrl, contact, confirmationCode } = props;
|
||||
return (
|
||||
<div className={className}>
|
||||
<img alt={title} src={imageUrl} style={{ width: '100%' }} />
|
||||
<h3>{title}</h3>
|
||||
<ContactInfo {...contact} />
|
||||
<p>Confirmation code {confirmationCode}</p>
|
||||
<BookingInfo {...info} />
|
||||
<p>Cancel booking</p>
|
||||
<NamedLink className={css.buttonLink} name="OrderDiscussionPage" params={{ id: orderId }}>
|
||||
You have a new message!
|
||||
|
|
@ -47,7 +46,6 @@ OrderDetailsPanel.propTypes = {
|
|||
orderId: oneOfType([string, number]).isRequired,
|
||||
title: string.isRequired,
|
||||
imageUrl: string.isRequired,
|
||||
info: object.isRequired,
|
||||
contact: object.isRequired,
|
||||
confirmationCode: string.isRequired,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -20,11 +20,6 @@ exports[`OrderDetailsPanel matches snapshot 1`] = `
|
|||
Confirmation code
|
||||
some-test-confirmation-code
|
||||
</p>
|
||||
<BookingInfo
|
||||
bookingDuration="some booking duration"
|
||||
bookingPeriod="some booking period"
|
||||
pricePerDay="10$"
|
||||
total="100$" />
|
||||
<p>
|
||||
Cancel booking
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -14,12 +14,6 @@ const OrderPage = props => {
|
|||
title,
|
||||
orderId,
|
||||
imageUrl: 'http://placehold.it/750x470',
|
||||
info: {
|
||||
pricePerDay: '55\u20AC',
|
||||
bookingPeriod: 'Jan 2nd - Jan 4th',
|
||||
bookingDuration: '3 days',
|
||||
total: '165\u20AC',
|
||||
},
|
||||
contact: {
|
||||
addressLine1: '350 5th Avenue',
|
||||
addressLine2: 'New York, NY 10118',
|
||||
|
|
|
|||
|
|
@ -35,14 +35,6 @@ exports[`OrderPage matches snapshot 1`] = `
|
|||
}
|
||||
}
|
||||
imageUrl="http://placehold.it/750x470"
|
||||
info={
|
||||
Object {
|
||||
"bookingDuration": "3 days",
|
||||
"bookingPeriod": "Jan 2nd - Jan 4th",
|
||||
"pricePerDay": "55€",
|
||||
"total": "165€",
|
||||
}
|
||||
}
|
||||
orderId={1234}
|
||||
title="Banyan Studios" />
|
||||
<OrderDiscussionPanel
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue