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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
const searchComponentMachine = Machine({ | |
id: 'searchComponents', | |
initial: 'newResult', | |
states: { | |
newResult:{ | |
on:{ |
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
const readingListComponentMachine = Machine({ | |
id: 'readingListComponents', | |
initial: 'unseen', | |
states: { | |
unseen:{ | |
on:{ |
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
const readingListSidebarMachine = Machine({ | |
id: 'readingListSidebar', | |
initial: 'idle', | |
type: 'parallel', | |
states: { | |
idle:{ | |
on:{ |
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
const readingListMachine = Machine({ | |
id: 'interview_Panel', | |
initial: 'interview', | |
type: 'parallel', | |
states: { | |
filterState: { | |
on: { | |
A_FILTER_DELETED: 'filterState', | |
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
const readingListMachine = Machine({ | |
id: 'readingList', | |
initial: 'interview', | |
type: 'parallel', | |
states: { | |
sortDropdown: { | |
on: { | |
SELECTED: 'sortDropdown', | |
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
const musoMachine = Machine({ | |
id: 'muso', | |
initial: 'landing_Page', | |
states: { | |
landing_Page: { | |
on: { | |
DRAWING_STARTED: 'instructions_Page', | |
WORKSHEET_DOWNLOADED: 'landing_Page' | |
} |
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
const contactMachine = Machine({ | |
id: 'contacts', | |
initial: 'importButton', | |
states: { | |
importButton: { | |
on: { | |
IMPORT: 'loadingButton', | |
ALREADY_FETCHED: 'contactModal', | |
}, | |
}, |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
const fetchMachine = Machine({ | |
id: 'contacts', | |
initial: 'add_contacts_button', | |
states: { | |
add_contacts_button: { | |
on: { | |
ADDED: 'permission_screen' |
NewerOlder