diff options
author | Sebastian <sebasjm@gmail.com> | 2023-05-25 18:08:20 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-05-26 09:26:09 -0300 |
commit | 64e3705669e7c12b8013704654f17cf8eaf659d4 (patch) | |
tree | b0572d228b34740f307da4c59e6e5fa0e3e1f808 /packages/exchange-backoffice-ui/src/route.ts | |
parent | dad7d48ed2d7cd6f17466889395b49023e4b5097 (diff) |
cases, account details and new-form screen
Diffstat (limited to 'packages/exchange-backoffice-ui/src/route.ts')
-rw-r--r-- | packages/exchange-backoffice-ui/src/route.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/exchange-backoffice-ui/src/route.ts b/packages/exchange-backoffice-ui/src/route.ts index ed6d8058d..d54f9be83 100644 --- a/packages/exchange-backoffice-ui/src/route.ts +++ b/packages/exchange-backoffice-ui/src/route.ts @@ -1,5 +1,5 @@ import { createHashHistory } from "history"; -import { VNode } from "preact"; +import { h as create, VNode } from "preact"; import { useEffect, useState } from "preact/hooks"; const history = createHashHistory(); @@ -64,7 +64,7 @@ export function Router({ }): VNode { const current = useCurrentLocation(pageList); if (current !== undefined) { - return current.page.view(current.values ?? {}); + return create(current.page.view, current.values); } return onNotFound(); } |