Skip to content

Commit

Permalink
feat: added text overrides on FulfillmentOptionsCheckoutAction
Browse files Browse the repository at this point in the history
Signed-off-by: Haris Spahija <haris.spahija@pon.com>
  • Loading branch information
HarisSpahijaPon committed Nov 21, 2019
1 parent 4808ec2 commit 2d5bbb0
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ class FulfillmentOptionsCheckoutAction extends Component {
*/
InlineAlert: CustomPropTypes.component.isRequired
}).isRequired,
/**
* The text for the "No fulfillment methods" label text.
*/
emptyMessageLabelText: PropTypes.string,
/**
* Checkout data needed for form
*/
Expand Down Expand Up @@ -97,7 +101,8 @@ class FulfillmentOptionsCheckoutAction extends Component {

static defaultProps = {
isSaving: false,
onReadyForSaveChange() { }
onReadyForSaveChange() { },
emptyMessageLabelText: "No fulfillment methods"
};

state = {};
Expand Down Expand Up @@ -158,7 +163,8 @@ class FulfillmentOptionsCheckoutAction extends Component {
fulfillmentGroup: {
availableFulfillmentOptions
},
stepNumber
stepNumber,
emptyMessageLabelText
} = this.props;

return (
Expand All @@ -184,7 +190,7 @@ class FulfillmentOptionsCheckoutAction extends Component {
/>
</Form>
:
<EmptyMessage>No fulfillment methods</EmptyMessage>
<EmptyMessage>{emptyMessageLabelText}</EmptyMessage>
}
</Fragment>
);
Expand Down

0 comments on commit 2d5bbb0

Please sign in to comment.