aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/Routing.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backoffice-ui/src/Routing.tsx')
-rw-r--r--packages/merchant-backoffice-ui/src/Routing.tsx59
1 files changed, 1 insertions, 58 deletions
diff --git a/packages/merchant-backoffice-ui/src/Routing.tsx b/packages/merchant-backoffice-ui/src/Routing.tsx
index 874c2b0f2..7398aaeec 100644
--- a/packages/merchant-backoffice-ui/src/Routing.tsx
+++ b/packages/merchant-backoffice-ui/src/Routing.tsx
@@ -312,8 +312,6 @@ export function Routing(_p: Props): VNode {
onUpdate={(id: string): void => {
route(`/instance/${id}/update`);
}}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.error)}
/>
)}
{state.isAdmin && (
@@ -322,7 +320,7 @@ export function Routing(_p: Props): VNode {
component={InstanceCreatePage}
onBack={() => route(AdminPaths.list_instances)}
onConfirm={() => {
- route(InstancePaths.order_list);
+ route(AdminPaths.list_instances);
}}
/>
)}
@@ -334,9 +332,6 @@ export function Routing(_p: Props): VNode {
onConfirm={() => {
route(AdminPaths.list_instances);
}}
- // onUpdateError={ServerErrorRedirectTo(AdminPaths.list_instances)}
- // onLoadError={ServerErrorRedirectTo(AdminPaths.list_instances)}
- // onNotFound={NotFoundPage}
/>
)}
{/**
@@ -351,10 +346,6 @@ export function Routing(_p: Props): VNode {
onConfirm={() => {
route(`/`);
}}
- // onUpdateError={noop}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.error)}
/>
{/**
* Update instance page
@@ -368,9 +359,6 @@ export function Routing(_p: Props): VNode {
onCancel={() => {
route(InstancePaths.order_list);
}}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.error)}
/>
{/**
* Inventory pages
@@ -384,9 +372,6 @@ export function Routing(_p: Props): VNode {
onSelect={(id: string) => {
route(InstancePaths.inventory_update.replace(":pid", id));
}}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.settings)}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
/>
<Route
path={InstancePaths.inventory_update}
@@ -397,9 +382,6 @@ export function Routing(_p: Props): VNode {
onBack={() => {
route(InstancePaths.inventory_list);
}}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.inventory_list)}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
/>
<Route
path={InstancePaths.inventory_new}
@@ -423,9 +405,6 @@ export function Routing(_p: Props): VNode {
onSelect={(id: string) => {
route(InstancePaths.bank_update.replace(":bid", id));
}}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.settings)}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
/>
<Route
path={InstancePaths.bank_update}
@@ -436,9 +415,6 @@ export function Routing(_p: Props): VNode {
onBack={() => {
route(InstancePaths.bank_list);
}}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.inventory_list)}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
/>
<Route
path={InstancePaths.bank_new}
@@ -462,16 +438,10 @@ export function Routing(_p: Props): VNode {
onSelect={(id: string) => {
route(InstancePaths.order_details.replace(":oid", id));
}}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.settings)}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
/>
<Route
path={InstancePaths.order_details}
component={OrderDetailsPage}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.order_list)}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
onBack={() => {
route(InstancePaths.order_list);
}}
@@ -492,9 +462,6 @@ export function Routing(_p: Props): VNode {
<Route
path={InstancePaths.transfers_list}
component={TransferListPage}
- // onUnauthorized={LoginPageAccessDenied}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.settings)}
onCreate={() => {
route(InstancePaths.transfers_new);
}}
@@ -515,9 +482,6 @@ export function Routing(_p: Props): VNode {
<Route
path={InstancePaths.webhooks_list}
component={WebhookListPage}
- // onUnauthorized={LoginPageAccessDenied}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.settings)}
onCreate={() => {
route(InstancePaths.webhooks_new);
}}
@@ -531,9 +495,6 @@ export function Routing(_p: Props): VNode {
onConfirm={() => {
route(InstancePaths.webhooks_list);
}}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.webhooks_list)}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
onBack={() => {
route(InstancePaths.webhooks_list);
}}
@@ -554,9 +515,6 @@ export function Routing(_p: Props): VNode {
<Route
path={InstancePaths.otp_devices_list}
component={ValidatorListPage}
- // onUnauthorized={LoginPageAccessDenied}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.settings)}
onCreate={() => {
route(InstancePaths.otp_devices_new);
}}
@@ -570,9 +528,6 @@ export function Routing(_p: Props): VNode {
onConfirm={() => {
route(InstancePaths.otp_devices_list);
}}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.otp_devices_list)}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
onBack={() => {
route(InstancePaths.otp_devices_list);
}}
@@ -593,9 +548,6 @@ export function Routing(_p: Props): VNode {
<Route
path={InstancePaths.templates_list}
component={TemplateListPage}
- // onUnauthorized={LoginPageAccessDenied}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.settings)}
onCreate={() => {
route(InstancePaths.templates_new);
}}
@@ -615,9 +567,6 @@ export function Routing(_p: Props): VNode {
onConfirm={() => {
route(InstancePaths.templates_list);
}}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.templates_list)}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
onBack={() => {
route(InstancePaths.templates_list);
}}
@@ -638,9 +587,6 @@ export function Routing(_p: Props): VNode {
onOrderCreated={(id: string) => {
route(InstancePaths.order_details.replace(":oid", id));
}}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.templates_list)}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
onBack={() => {
route(InstancePaths.templates_list);
}}
@@ -648,9 +594,6 @@ export function Routing(_p: Props): VNode {
<Route
path={InstancePaths.templates_qr}
component={TemplateQrPage}
- // onUnauthorized={LoginPageAccessDenied}
- // onLoadError={ServerErrorRedirectTo(InstancePaths.templates_list)}
- // onNotFound={IfAdminCreateDefaultOr(NotFoundPage)}
onBack={() => {
route(InstancePaths.templates_list);
}}