♻️ (route) simpler route
This commit is contained in:
@@ -8,8 +8,13 @@ const routes: RouteConfig[] = [
|
|||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
name: 'Home',
|
name: 'Home',
|
||||||
|
component: Home
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/play',
|
||||||
|
name: 'Home',
|
||||||
component: Home,
|
component: Home,
|
||||||
props: (route) => ({ play: route.query.play })
|
props: { play: true }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ module.exports = {
|
|||||||
name: 'Start a session',
|
name: 'Start a session',
|
||||||
short_name: 'Start',
|
short_name: 'Start',
|
||||||
description: 'Start a pair programming session',
|
description: 'Start a pair programming session',
|
||||||
url: '/?play=true'
|
url: '/play'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
icons: [
|
icons: [
|
||||||
|
|||||||
Reference in New Issue
Block a user