Closed machikoyasuda closed 6 years ago
Here are some more specific implementation guidelines:
CheckoutAction
component, remove the label
prop and replace with three props: activeLabel
, completeLabel
, incompleteLabel
CheckoutAction
component, in each of the render*Action
functions, replace props.label
use with the matching specific label propCheckoutActions
component, update actions
shape to have the three separate labels instead of just label
. In renderAction
, pass all of those to CheckoutAction
rather than label
.CheckoutActions
component, we currently key by label
. Instead, add a new id
prop on the actions
shape and key by that. This means updating getCurrentActionByLabel
and currentActions.find
by label, etc.CheckoutActions
markdown to have separate labels to show that it works:tada: This issue has been resolved in version 0.41.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Type: minor
Describe the bug A checkout action's label changes as the status changes:
To Reproduce Currently, checkout action labels are static and do not change with status change.
Expected behavior A user should be able to input 2 labels, a instruction label and a post-success label. The component should know when to show which label.