Skip to content

Instantly share code, notes, and snippets.

@lifedraft
Last active March 2, 2020 13:11
Show Gist options
  • Save lifedraft/29c327685d6ff7b6d30ee6517817aaac to your computer and use it in GitHub Desktop.
Save lifedraft/29c327685d6ff7b6d30ee6517817aaac to your computer and use it in GitHub Desktop.
Add to cart V2*
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
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