Skip to content

Instantly share code, notes, and snippets.

@robertpenner
Last active August 12, 2021 22:11
Show Gist options
  • Save robertpenner/8886cefc6ff65959c5d1cd5448ad1f2b to your computer and use it in GitHub Desktop.
Save robertpenner/8886cefc6ff65959c5d1cd5448ad1f2b to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const machine = Machine({
id: "Main Navigation - Deep",
meta: { description: "5 pages with dedicated buttons" },
initial: "YourTOUR",
states: {
YourTOUR: {},
Discover: {
initial: "News",
states: {
News: {},
Schedule: {
initial: "Upcoming",
states: {
Upcoming: {},
Completed: {},
},
},
Standings: {},
Players: {},
Stats: {},
},
},
Leaderboard: {
initial: "Leaderboard",
states: {
Leaderboard: {
type: 'parallel',
states: {
'[A Pro Tournament]': {},
'[A Pro-Am Tournament]': {
initial: 'Pro',
states: {
Pro: {},
'[Amateur Categories]': {},
},
},
},
},
"Tee Times": {
type: 'parallel',
states: {
'[A Tournament]': {
initial: 'Round 1',
states: {
'Round 1': {},
'Round 2': {},
'Round 3': {},
'Round 4': {},
},
},
},
},
FedExCup: {},
Odds: {
initial: 'Unavailable',
states: {
Unavailable: {},
'To Win': {},
Matchups: {
initial: '3 Ball – DHR – R1',
states: {
'3 Ball – DHR – R1': {},
'2 Ball – DHR – R1': {},
'H2H – DHR – F': {},
}
},
Finishes: {
initial: 'Top 5',
states: {
'Top 5': {},
'Top 10': {},
'Top 20': {},
},
},
Groups: {},
Players: {
initial: 'Make the Cut',
states: {
'Make the Cut': {},
'Leader After R1': {}
}
},
Nationality: {
initial: 'USA',
states: {
USA: {},
Asian: {},
Australian: {},
British: {},
Canadian: {},
}
},
Compare: {
initial: 'FanDuel',
states: {
FanDuel: {},
BetMGM: {},
DraftKings: {},
SportsBet: {},
History: {},
}
}
}
},
},
},
Watch: {},
Search: {},
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment