Skip to content

Commit

Permalink
Show current parent page's actions if inside one of them
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmischka committed Mar 27, 2023
1 parent 9d2d232 commit eeb11b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/examples/basic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ const page1 = new Page({
name: 'Page with children',
handler: async () => new Layout({}),
routes: {
child_route: new Action(async () => 'Hello, world!'),
child_action1: new Action(async () => 'Hello, world!'),
child_action2: new Action(async () => 'Hello, world!'),
child_page: new Page({
name: 'Child page',
}),
},
})

Expand Down

0 comments on commit eeb11b1

Please sign in to comment.