Last active
March 2, 2020 13:11
-
-
Save lifedraft/29c327685d6ff7b6d30ee6517817aaac to your computer and use it in GitHub Desktop.
Add to cart V2*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add to cart V2* | |
Click -> Add product to cart | |
Add product to cart | |
Loading* | |
Success -> Success | |
Fail -> Response evaluate | |
Response evaluate | |
Needs flight -> Open Flight modal | |
Known rule engine error -> Error | |
Unknown error -> Error | |
Open Flight modal | |
Close after success -> ResetForm | |
Cancel -> Add to cart V2 | |
ResetForm | |
* -> Add to cart V2 | |
Success | |
Animation end -> Add to cart V2 | |
Error | |
Animation end -> Add to cart V2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
return <h1 style={{color: "darkBlue"}}> | |
{`The current state is: ${current_state_name}`} | |
</h1> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment