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
e |--0-0-0-0h2p0---0----------------------- | |
B |--3-3-3-------3---3-----2---------3----- | |
A |--0-0-0-------------------0---------0--- | |
D |---------------------------------------- | |
A |----------------------0-------0--------- | |
D |0-------------------------------3-----3- |
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
// __mocks__/@chakra-ui/react.js | |
const React = require('react'); | |
const actual = jest.requireActual('@chakra-ui/react'); | |
const MenuContext = React.createContext({}); | |
const useMenuItem = props => { | |
const { | |
onMouseEnter: onMouseEnterProp, |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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 isBrowser = typeof window !== "undefined" | |
// We check for event support via functions in case they've been mocked by a testing suite. | |
export const supportsPointerEvents = () => | |
isBrowser && window.onpointerdown === null | |
export const supportsTouchEvents = () => | |
isBrowser && window.ontouchstart === null | |
export const supportsMouseEvents = () => | |
isBrowser && window.onmousedown === null |
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 DATES_TAB = { | |
target: "dates", | |
actions: ["sendGAEvent"], | |
} | |
Machine({ | |
id: "app", | |
initial: "fetchAttendee", | |
context: { | |
lastScreen: "schedule", | |
friendId: undefined, |
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 BOOK_OR_REVIEW = { BOOK: '#schedule', DATES: '#dates' }; | |
const machine = Machine({ | |
id: 'app', | |
initial: 'fetchAttendee', | |
context: { | |
lastScreen: 'schedule', | |
friendId: undefined, | |
friendTimeId: undefined, | |
someoneNewTimes: new Set(), |
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 machineConfig = { | |
initial: "idle", | |
id: "main", | |
context: { | |
initialTime: 0, | |
currentTime: 0, | |
notificationTimes: [] | |
}, | |
states: { | |
idle: { |
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 BOOK_OR_REVIEW = { BOOK: '#schedule', DATES: '#dates' }; | |
const appMachine = Machine( | |
{ | |
id: 'app', | |
initial: 'codeOfConduct', | |
context: { | |
lastScreen: 'schedule', | |
selectedAttendee: undefined, | |
}, | |
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
const BOOK_OR_REVIEW = { BOOK: '#schedule', DATES: '#dates' }; | |
const routesMachine = Machine( | |
{ | |
id: 'routes', | |
initial: 'codeOfConduct', | |
context: { | |
lastScreen: '', | |
}, | |
states: { |
NewerOlder