mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
routes path fixes
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ import appConfig from 'configs/app/config';
|
||||
import { ROUTES } from './routes';
|
||||
import type { RouteName } from './routes';
|
||||
|
||||
const PATH_PARAM_REGEXP = /\/\[(\w+)\]/g;
|
||||
const PATH_PARAM_REGEXP = /\/:(\w+)/g;
|
||||
|
||||
export default function link(
|
||||
routeName: RouteName,
|
||||
|
||||
+7
-7
@@ -7,16 +7,16 @@ const paths = {
|
||||
custom_abi: `/account/custom_abi`,
|
||||
profile: `/auth/profile`,
|
||||
txs: `/txs`,
|
||||
tx: `/tx/[id]`,
|
||||
tx: `/tx/:id`,
|
||||
blocks: `/blocks`,
|
||||
block: `/block/[id]`,
|
||||
block: `/block/:id`,
|
||||
tokens: `/tokens`,
|
||||
token_index: `/token/[hash]`,
|
||||
token_instance_item: `/token/[hash]/instance/[id]`,
|
||||
address_index: `/address/[id]`,
|
||||
address_contract_verification: `/address/[id]/contract_verifications/new`,
|
||||
token_index: `/token/:hash`,
|
||||
token_instance_item: `/token/:hash/instance/:id`,
|
||||
address_index: `/address/:id`,
|
||||
address_contract_verification: `/address/:id/contract_verifications/new`,
|
||||
apps: `/apps`,
|
||||
app_index: `/apps/[id]`,
|
||||
app_index: `/apps/:id`,
|
||||
search_results: `/search-results`,
|
||||
other: `/search-results`,
|
||||
auth: `/auth/auth0`,
|
||||
|
||||
Reference in New Issue
Block a user