mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-08 18:48:18 +01:00
Pass as separate arguments to constructor
This commit is contained in:
parent
4c3e0a6ff0
commit
5d42f372f6
@ -40,7 +40,7 @@ export function createNavigation(): Navigation<SegmentType> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function createRouter({history, navigation}) {
|
export function createRouter({history, navigation}) {
|
||||||
return new URLRouter({history, navigation, stringifyPath, parseUrlPath});
|
return new URLRouter(history, navigation, parseUrlPath, stringifyPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
function allowsChild(parent: {type: string, value: any} | undefined, child: {type: string, value: any}): boolean {
|
function allowsChild(parent: {type: string, value: any} | undefined, child: {type: string, value: any}): boolean {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user