diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/InstanceRoutes.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/src/InstanceRoutes.tsx | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx b/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx index 5d33655ff..dcb3e21ea 100644 --- a/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx +++ b/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx @@ -62,9 +62,9 @@ import TemplateUpdatePage from "./paths/instance/templates/update/index.js"; import WebhookCreatePage from "./paths/instance/webhooks/create/index.js"; import WebhookListPage from "./paths/instance/webhooks/list/index.js"; import WebhookUpdatePage from "./paths/instance/webhooks/update/index.js"; -import ValidatorCreatePage from "./paths/instance/validators/create/index.js"; -import ValidatorListPage from "./paths/instance/validators/list/index.js"; -import ValidatorUpdatePage from "./paths/instance/validators/update/index.js"; +import ValidatorCreatePage from "./paths/instance/otp_devices/create/index.js"; +import ValidatorListPage from "./paths/instance/otp_devices/list/index.js"; +import ValidatorUpdatePage from "./paths/instance/otp_devices/update/index.js"; import TransferCreatePage from "./paths/instance/transfers/create/index.js"; import TransferListPage from "./paths/instance/transfers/list/index.js"; import InstanceUpdatePage, { @@ -114,9 +114,9 @@ export enum InstancePaths { webhooks_update = "/webhooks/:tid/update", webhooks_new = "/webhooks/new", - validators_list = "/validators", - validators_update = "/validators/:vid/update", - validators_new = "/validators/new", + otp_devices_list = "/otp-devices", + otp_devices_update = "/otp-devices/:vid/update", + otp_devices_new = "/otp-devices/new", interface = "/interface", } @@ -526,39 +526,39 @@ export function InstanceRoutes({ * Validator pages */} <Route - path={InstancePaths.validators_list} + path={InstancePaths.otp_devices_list} component={ValidatorListPage} onUnauthorized={LoginPageAccessDenied} onNotFound={IfAdminCreateDefaultOr(NotFoundPage)} onLoadError={ServerErrorRedirectTo(InstancePaths.settings)} onCreate={() => { - route(InstancePaths.validators_new); + route(InstancePaths.otp_devices_new); }} onSelect={(id: string) => { - route(InstancePaths.validators_update.replace(":vid", id)); + route(InstancePaths.otp_devices_update.replace(":vid", id)); }} /> <Route - path={InstancePaths.validators_update} + path={InstancePaths.otp_devices_update} component={ValidatorUpdatePage} onConfirm={() => { - route(InstancePaths.validators_list); + route(InstancePaths.otp_devices_list); }} onUnauthorized={LoginPageAccessDenied} - onLoadError={ServerErrorRedirectTo(InstancePaths.validators_list)} + onLoadError={ServerErrorRedirectTo(InstancePaths.otp_devices_list)} onNotFound={IfAdminCreateDefaultOr(NotFoundPage)} onBack={() => { - route(InstancePaths.validators_list); + route(InstancePaths.otp_devices_list); }} /> <Route - path={InstancePaths.validators_new} + path={InstancePaths.otp_devices_new} component={ValidatorCreatePage} onConfirm={() => { - route(InstancePaths.validators_list); + route(InstancePaths.otp_devices_list); }} onBack={() => { - route(InstancePaths.validators_list); + route(InstancePaths.otp_devices_list); }} /> {/** @@ -667,7 +667,7 @@ export function InstanceRoutes({ }} /> <Route path={InstancePaths.kyc} component={ListKYCPage} /> - <Route path={InstancePaths.settings} component={Settings} /> + <Route path={InstancePaths.interface} component={Settings} /> {/** * Example pages */} |