Skip to content

Commit

Permalink
Add onManageDisableScrolling to BookingPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
lyyder committed Dec 10, 2018
1 parent fbf5db5 commit cd4d36d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/TransactionPanel/TransactionPanel.helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export const BookingPanelMaybe = props => {
listing,
listingTitle,
provider,
onManageDisableScrolling,
timeSlots,
fetchTimeSlotsError,
} = props;
Expand All @@ -200,7 +201,7 @@ export const BookingPanelMaybe = props => {
handleBookingSubmit={() => console.log('submit')}
title={listingTitle}
authorDisplayName={authorDisplayName}
onManageDisableScrolling={() => null}
onManageDisableScrolling={onManageDisableScrolling}
timeSlots={timeSlots}
fetchTimeSlotsError={fetchTimeSlotsError}
/>
Expand Down
1 change: 1 addition & 0 deletions src/components/TransactionPanel/TransactionPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ export class TransactionPanelComponent extends Component {
listing={currentListing}
listingTitle={listingTitle}
provider={currentProvider}
onManageDisableScrolling={onManageDisableScrolling}
timeSlots={timeSlots}
fetchTimeSlotsError={fetchTimeSlotsError}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,7 @@ exports[`TransactionPanel - Order accepted matches snapshot 1`] = `
}
}
listingTitle="listing1 title"
onManageDisableScrolling={[Function]}
provider={
Object {
"attributes": Object {
Expand Down Expand Up @@ -2346,6 +2347,7 @@ exports[`TransactionPanel - Order autodeclined matches snapshot 1`] = `
}
}
listingTitle="listing1 title"
onManageDisableScrolling={[Function]}
provider={
Object {
"attributes": Object {
Expand Down Expand Up @@ -3662,6 +3664,7 @@ exports[`TransactionPanel - Order canceled matches snapshot 1`] = `
}
}
listingTitle="listing1 title"
onManageDisableScrolling={[Function]}
provider={
Object {
"attributes": Object {
Expand Down Expand Up @@ -4978,6 +4981,7 @@ exports[`TransactionPanel - Order declined matches snapshot 1`] = `
}
}
listingTitle="listing1 title"
onManageDisableScrolling={[Function]}
provider={
Object {
"attributes": Object {
Expand Down Expand Up @@ -6294,6 +6298,7 @@ exports[`TransactionPanel - Order delivered matches snapshot 1`] = `
}
}
listingTitle="listing1 title"
onManageDisableScrolling={[Function]}
provider={
Object {
"attributes": Object {
Expand Down Expand Up @@ -7610,6 +7615,7 @@ exports[`TransactionPanel - Order enquired matches snapshot 1`] = `
}
}
listingTitle="listing1 title"
onManageDisableScrolling={[Function]}
provider={
Object {
"attributes": Object {
Expand Down Expand Up @@ -8926,6 +8932,7 @@ exports[`TransactionPanel - Order preauthorized matches snapshot 1`] = `
}
}
listingTitle="listing1 title"
onManageDisableScrolling={[Function]}
provider={
Object {
"attributes": Object {
Expand Down Expand Up @@ -10242,6 +10249,7 @@ exports[`TransactionPanel - Sale accepted matches snapshot 1`] = `
}
}
listingTitle="listing1 title"
onManageDisableScrolling={[Function]}
provider={
Object {
"attributes": Object {
Expand Down Expand Up @@ -11558,6 +11566,7 @@ exports[`TransactionPanel - Sale autodeclined matches snapshot 1`] = `
}
}
listingTitle="listing1 title"
onManageDisableScrolling={[Function]}
provider={
Object {
"attributes": Object {
Expand Down Expand Up @@ -12874,6 +12883,7 @@ exports[`TransactionPanel - Sale canceled matches snapshot 1`] = `
}
}
listingTitle="listing1 title"
onManageDisableScrolling={[Function]}
provider={
Object {
"attributes": Object {
Expand Down Expand Up @@ -14190,6 +14200,7 @@ exports[`TransactionPanel - Sale declined matches snapshot 1`] = `
}
}
listingTitle="listing1 title"
onManageDisableScrolling={[Function]}
provider={
Object {
"attributes": Object {
Expand Down Expand Up @@ -15506,6 +15517,7 @@ exports[`TransactionPanel - Sale delivered matches snapshot 1`] = `
}
}
listingTitle="listing1 title"
onManageDisableScrolling={[Function]}
provider={
Object {
"attributes": Object {
Expand Down Expand Up @@ -16822,6 +16834,7 @@ exports[`TransactionPanel - Sale enquired matches snapshot 1`] = `
}
}
listingTitle="listing1 title"
onManageDisableScrolling={[Function]}
provider={
Object {
"attributes": Object {
Expand Down Expand Up @@ -18138,6 +18151,7 @@ exports[`TransactionPanel - Sale preauthorized matches snapshot 1`] = `
}
}
listingTitle="listing1 title"
onManageDisableScrolling={[Function]}
provider={
Object {
"attributes": Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ exports[`TransactionPage - Order matches snapshot 1`] = `
declineSaleError={null}
fetchMessagesError={null}
fetchMessagesInProgress={false}
fetchTimeSlotsError={null}
initialMessageFailed={false}
messages={Array []}
oldestMessagePageFetched={0}
Expand All @@ -57,6 +58,7 @@ exports[`TransactionPage - Order matches snapshot 1`] = `
onShowMoreMessages={[Function]}
sendMessageError={null}
sendMessageInProgress={false}
timeSlots={null}
totalMessagePages={0}
transaction={
Object {
Expand Down Expand Up @@ -244,6 +246,7 @@ exports[`TransactionPage - Sale matches snapshot 1`] = `
declineInProgress={false}
declineSaleError={null}
fetchMessagesError={null}
fetchTimeSlotsError={null}
initialMessageFailed={false}
messages={Array []}
oldestMessagePageFetched={0}
Expand All @@ -253,6 +256,7 @@ exports[`TransactionPage - Sale matches snapshot 1`] = `
onShowMoreMessages={[Function]}
sendMessageError={null}
sendMessageInProgress={false}
timeSlots={null}
totalMessagePages={0}
transaction={
Object {
Expand Down

0 comments on commit cd4d36d

Please sign in to comment.