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 machine = Machine({ | |
id: 'modalMachine', | |
initial: 'closed', | |
states: { | |
closed: { | |
on: { | |
OPEN: 'open', | |
TOGGLE: 'open', | |
}, | |
}, |
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 context = { | |
// TODO: separate machines for logged in/logged out | |
// logged out | |
email: '', | |
password: '', | |
passwordA: '', | |
passwordB: '', | |
username: '', | |
loginError: '', |
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 EMPTY_SONG = Object.freeze({ | |
id: '', | |
title: '', | |
description: '', | |
thumbnail: '', | |
}); | |
const context = { | |
// logged in | |
player: { |
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 EMPTY_SONG = Object.freeze({ | |
id: '', | |
title: '', | |
description: '', | |
thumbnail: '', | |
}); | |
const context = { | |
// logged in | |
player: { |
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 EMPTY_SONG = Object.freeze({ | |
id: '', | |
title: '', | |
description: '', | |
thumbnail: '', | |
}); | |
const context = { | |
// TODO: separate machines for logged in/logged out | |
// logged out |
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 context = { | |
email: '', | |
password: '', | |
passwordA: '', | |
passwordB: '', | |
username: '', | |
loginError: '', | |
recoveryEmailError: '', | |
}; |
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 machine = Machine({ | |
id: 'Audacy App', | |
context: { | |
email: '', | |
password: '', | |
loginError: '', | |
recoveryEmailError: '', | |
}, | |
initial: 'logged out', |
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 machine = Machine( { | |
id: 'Audacy', | |
type: 'parallel', | |
states: { | |
'core page': { | |
id: 'core page', | |
meta: { description: '4 pages with dedicated buttons' }, | |
on: { | |
TAP_FOR_YOU: '.For you', | |
TAP_MUSIC: '.Music', |
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 machine = Machine({ | |
id: 'Audacy', | |
type: 'parallel', | |
states: { | |
'core page': { | |
id: 'core page', | |
meta: { description: '4 pages with dedicated buttons' }, | |
on: { | |
TAP_FOR_YOU: '.For you', | |
TAP_MUSIC: '.Music', |
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 machine = Machine({ | |
id: 'Audacy - App Map', | |
type: 'parallel', | |
states: { | |
'core page': { | |
id: 'core page', | |
meta: { description: '4 pages with dedicated buttons' }, | |
on: { | |
TAP_FOR_YOU: '.For you', | |
TAP_MUSIC: '.Music', |