aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/Routing.tsx
diff options
context:
space:
mode:
authorChristian Blättler <blatc2@bfh.ch>2024-06-13 17:03:22 +0200
committerChristian Blättler <blatc2@bfh.ch>2024-06-13 17:03:22 +0200
commit9e7731e560ae360ed9f00cf2065c0a80c3eb8a85 (patch)
tree0bf53884888f1f5fc234a83ecf6173812b3669b6 /packages/merchant-backoffice-ui/src/Routing.tsx
parented9d4e4216be4fd69d7c0613cb6ee4605a6de3ce (diff)
parenteb964dfae0a12f9a90eb066d610f627538f8997c (diff)
Merge branch 'feature/tokens'
Diffstat (limited to 'packages/merchant-backoffice-ui/src/Routing.tsx')
-rw-r--r--packages/merchant-backoffice-ui/src/Routing.tsx40
1 files changed, 40 insertions, 0 deletions
diff --git a/packages/merchant-backoffice-ui/src/Routing.tsx b/packages/merchant-backoffice-ui/src/Routing.tsx
index 665137415..4ffad2d6d 100644
--- a/packages/merchant-backoffice-ui/src/Routing.tsx
+++ b/packages/merchant-backoffice-ui/src/Routing.tsx
@@ -60,6 +60,9 @@ import TemplateQrPage from "./paths/instance/templates/qr/index.js";
import TemplateUpdatePage from "./paths/instance/templates/update/index.js";
import TemplateUsePage from "./paths/instance/templates/use/index.js";
import TokenPage from "./paths/instance/token/index.js";
+import TokenFamilyCreatePage from "./paths/instance/tokenfamilies/create/index.js";
+import TokenFamilyListPage from "./paths/instance/tokenfamilies/list/index.js";
+import TokenFamilyUpdatePage from "./paths/instance/tokenfamilies/update/index.js";
import TransferCreatePage from "./paths/instance/transfers/create/index.js";
import TransferListPage from "./paths/instance/transfers/list/index.js";
import InstanceUpdatePage, {
@@ -106,6 +109,10 @@ export enum InstancePaths {
templates_use = "/templates/:tid/use",
templates_qr = "/templates/:tid/qr",
+ token_family_list = "/tokenfamilies",
+ token_family_update = "/tokenfamilies/:slug/update",
+ token_family_new = "/tokenfamilies/new",
+
webhooks_list = "/webhooks",
webhooks_update = "/webhooks/:tid/update",
webhooks_new = "/webhooks/new",
@@ -472,6 +479,39 @@ export function Routing(_p: Props): VNode {
route(InstancePaths.transfers_list);
}}
/>
+ {/* *
+ * Token family pages
+ */}
+ <Route
+ path={InstancePaths.token_family_list}
+ component={TokenFamilyListPage}
+ onCreate={() => {
+ route(InstancePaths.token_family_new);
+ }}
+ onSelect={(slug: string) => {
+ route(InstancePaths.token_family_update.replace(":slug", slug));
+ }}
+ />
+ <Route
+ path={InstancePaths.token_family_update}
+ component={TokenFamilyUpdatePage}
+ onConfirm={() => {
+ route(InstancePaths.token_family_list);
+ }}
+ onBack={() => {
+ route(InstancePaths.token_family_list);
+ }}
+ />
+ <Route
+ path={InstancePaths.token_family_new}
+ component={TokenFamilyCreatePage}
+ onConfirm={() => {
+ route(InstancePaths.token_family_list);
+ }}
+ onBack={() => {
+ route(InstancePaths.token_family_list);
+ }}
+ />
{/**
* Webhooks pages
*/}