Last active
December 31, 2021 10:12
-
-
Save v1valasvegan/ce99cd05f3a279f9127bf2c173efbf32 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
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 panelsMachine = Machine({ | |
id: 'unassignedToursMachine', | |
initial: 'selectingTours', | |
states: { | |
selectingTours: { | |
on: { | |
SELECT_TOUR: 'selectingShipments', | |
}, | |
}, | |
selectingShipments: { | |
on: { | |
SELECT_SHIPMENT: 'confirmingShipmentSelection', | |
CLOSE: 'selectingTours', | |
}, | |
}, | |
confirmingShipmentSelection: { | |
on: { | |
CONFIRM: 'selectingShipments', | |
CLOSE: 'selectingShipments', | |
}, | |
}, | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment