This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am alexluong on github. | |
* I am alexluong (https://keybase.io/alexluong) on keybase. | |
* I have a public key ASAkewXXsvnE1-_GR6dWk9XY1Y0e5q8srHC_Ly-zl8fATQo | |
To claim this, I am signing this object: |
This file contains 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
const isNewPayment = true | |
const isAuthenticated = false | |
const isCustomer = false | |
// Change this to change transition time between states | |
const TRANSITION_TIME = 2000 // ms | |
const checkoutMachine = Machine( | |
{ | |
id: "checkout", |
This file contains 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
const isAuthenticated = true | |
const machine = Machine({ | |
id: "checkout", | |
initial: "emailAndAddress", | |
context: { | |
isAuthenticated, | |
addresses: [], | |
paymentMethods: [], |
This file contains 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
const isAuthenticated = true | |
const machine = Machine({ | |
id: "checkout", | |
initial: "emailAndAddress", | |
context: { | |
isAuthenticated, | |
addresses: [], | |
paymentMethods: [], |
This file contains 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
const machine = Machine({ | |
id: 'checkout', | |
initial: 'emailAndAddress', | |
context: { | |
retries: 0 | |
}, | |
states: { | |
emailAndAddress: { | |
initial: "idle", | |
states: { |
This file contains 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
1. Fork | |
2. Clone `git clone <forked-repo> && cd <forked-repo>` | |
3. Add upstream `git remote add upstream <original-repo>` | |
4. Fetch upstream `git fetch upstream` | |
5. Set master to track upstream `git branch --set-upstream-to=upstream/master master` |
This file contains 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
{ | |
"explorer.confirmDelete": false, | |
"explorer.confirmDragAndDrop": false, | |
"workbench.sideBar.location": "left", | |
"workbench.colorTheme": "Night Owl (No Italics)", | |
"workbench.iconTheme": "vscode-great-icons", | |
"editor.cursorStyle": "line", | |
"editor.fontFamily": "'Jetbrains Mono', 'Operator Mono'", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 14, |