From b97d172cb9b3d04dba39df03c44f768c4fa6d6d3 Mon Sep 17 00:00:00 2001 From: Lucas Magnus Date: Fri, 22 Sep 2023 16:36:19 -0300 Subject: [PATCH] feat: fix route --- frontend/src/app/auth/hocs/require-auth.tsx | 2 +- frontend/src/app/core/routes/index.tsx | 2 +- frontend/src/components/enums/path-route.ts | 54 ++++++++++----------- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/frontend/src/app/auth/hocs/require-auth.tsx b/frontend/src/app/auth/hocs/require-auth.tsx index 939a0989..1e8885e2 100644 --- a/frontend/src/app/auth/hocs/require-auth.tsx +++ b/frontend/src/app/auth/hocs/require-auth.tsx @@ -9,7 +9,7 @@ const RequireAuth = ({ children }: { children: JSX.Element }): JSX.Element => { if (!isAuthenticated) { return ( - + ) } diff --git a/frontend/src/app/core/routes/index.tsx b/frontend/src/app/core/routes/index.tsx index ea1e23bb..b4f52d4e 100644 --- a/frontend/src/app/core/routes/index.tsx +++ b/frontend/src/app/core/routes/index.tsx @@ -18,7 +18,7 @@ const CoreRouter = (): JSX.Element => { ] return ( - + {routes.map(route => route)} ) diff --git a/frontend/src/components/enums/path-route.ts b/frontend/src/components/enums/path-route.ts index 9809c1d2..ba582d13 100644 --- a/frontend/src/components/enums/path-route.ts +++ b/frontend/src/components/enums/path-route.ts @@ -1,30 +1,30 @@ export enum PathRoute { - SANDBOX = '/sandbox/v2/sandbox', - HOME = '/sandbox/v2/', - LOGIN = '/sandbox/v2/login/:expired?', - SIGNUP = '/sandbox/v2/signup', - RESET_PASSWORD = '/sandbox/v2/reset-password', - PAYMENTS_TOKENS = '/sandbox/v2/payments-tokens', - SECURITIES_TOKENS = '/sandbox/v2/securities-tokens', - SOROBAN_SMART_CONTRACTS = '/sandbox/v2/soroban-smart-contracts', + SANDBOX = '/sandbox', + HOME = '/', + LOGIN = '/login/:expired?', + SIGNUP = '/signup', + RESET_PASSWORD = '/reset-password', + PAYMENTS_TOKENS = '/payments-tokens', + SECURITIES_TOKENS = '/securities-tokens', + SOROBAN_SMART_CONTRACTS = '/soroban-smart-contracts', BLOCKCHAIN_EXPLORER = '/blockchain-explorer', - SETTINGS = '/sandbox/v2/settings/team-members', - PERMISSIONS = '/sandbox/v2/settings/permissions', - ROLES_MANAGE = '/sandbox/v2/settings/roles_manage', - PROFILE = '/sandbox/v2/profile', - FORGE_ASSET = '/sandbox/v2/forge-asset', - ASSET_HOME = '/sandbox/v2/asset-management/home', - MINT_ASSET = '/sandbox/v2/asset-management/mint', - BURN_ASSET = '/sandbox/v2/asset-management/burn', - DISTRIBUTE_ASSET = '/sandbox/v2/asset-management/distribute', - AUTHORIZE_ACCOUNT = '/sandbox/v2/asset-management/authorize', - CLAWBACK_ASSET = '/sandbox/v2/asset-management/clawback', - FREEZE_ACCOUNT = '/sandbox/v2/asset-management/freeze', - VAULTS = '/sandbox/v2/vaults', - VAULT_CREATE = '/sandbox/v2/vault-create', - VAULT_DETAIL = '/sandbox/v2/vault-detail', - CONTRACT_DETAIL = '/sandbox/v2/contract-detail', - CONTRACT_CREATE = '/sandbox/v2/contract-create', - TOKEN_MANAGEMENT = '/sandbox/v2/token-management', - DASHBOARDS = '/sandbox/v2/dashboards', + SETTINGS = '/settings/team-members', + PERMISSIONS = '/settings/permissions', + ROLES_MANAGE = '/settings/roles_manage', + PROFILE = '/profile', + FORGE_ASSET = '/forge-asset', + ASSET_HOME = '/asset-management/home', + MINT_ASSET = '/asset-management/mint', + BURN_ASSET = '/asset-management/burn', + DISTRIBUTE_ASSET = '/asset-management/distribute', + AUTHORIZE_ACCOUNT = '/asset-management/authorize', + CLAWBACK_ASSET = '/asset-management/clawback', + FREEZE_ACCOUNT = '/asset-management/freeze', + VAULTS = '/vaults', + VAULT_CREATE = '/vault-create', + VAULT_DETAIL = '/vault-detail', + CONTRACT_DETAIL = '/contract-detail', + CONTRACT_CREATE = '/contract-create', + TOKEN_MANAGEMENT = '/token-management', + DASHBOARDS = '/dashboards', }