@@ -12,6 +12,7 @@ import { AccountPage, accountPageTitle } from './features/accounts/pages/account
1212import { AssetPage , assetPageTitle } from './features/assets/pages/asset-page'
1313import { ApplicationPage , applicationPageTitle } from './features/applications/pages/application-page'
1414import { SettingsPage } from './features/settings/pages/settings-page'
15+ import { TxPage } from './features/transactions/pages/tx-page'
1516
1617export const routes = evalTemplates ( [
1718 {
@@ -25,67 +26,53 @@ export const routes = evalTemplates([
2526 children : [
2627 {
2728 template : Urls . Index ,
28- element : (
29- < div >
30- < h1 className = "font-bold" > Home</ h1 >
31- </ div >
32- ) ,
29+ element : < ExplorePage /> ,
30+ errorElement : < ErrorPage title = { explorePageTitle } /> ,
3331 } ,
3432 {
35- template : Urls . Explore ,
36- errorElement : < ErrorPage /> ,
33+ template : Urls . Transaction . ById ,
34+ errorElement : < ErrorPage title = { transactionPageTitle } /> ,
3735 children : [
3836 {
39- template : Urls . Explore ,
40- element : < ExplorePage /> ,
41- errorElement : < ErrorPage title = { explorePageTitle } /> ,
37+ template : Urls . Transaction . ById ,
38+ element : < TransactionPage /> ,
4239 } ,
4340 {
44- template : Urls . Explore . Transaction . ById ,
45- errorElement : < ErrorPage title = { transactionPageTitle } /> ,
46- children : [
47- {
48- template : Urls . Explore . Transaction . ById ,
49- element : < TransactionPage /> ,
50- } ,
51- {
52- template : Urls . Explore . Transaction . ById . Inner . ById ,
53- element : < InnerTransactionPage /> ,
54- } ,
55- ] ,
56- } ,
57- {
58- template : Urls . Explore . Block . ByRound ,
59- children : [
60- {
61- template : Urls . Explore . Block . ByRound ,
62- errorElement : < ErrorPage title = { blockPageTitle } /> ,
63- element : < BlockPage /> ,
64- } ,
65- {
66- template : Urls . Explore . Block . ByRound . Group . ById ,
67- errorElement : < ErrorPage title = { groupPageTitle } /> ,
68- element : < GroupPage /> ,
69- } ,
70- ] ,
71- } ,
72- {
73- template : Urls . Explore . Account . ByAddress ,
74- element : < AccountPage /> ,
75- errorElement : < ErrorPage title = { accountPageTitle } /> ,
41+ template : Urls . Transaction . ById . Inner . ById ,
42+ element : < InnerTransactionPage /> ,
7643 } ,
44+ ] ,
45+ } ,
46+ {
47+ template : Urls . Block . ByRound ,
48+ children : [
7749 {
78- template : Urls . Explore . Asset . ById ,
79- element : < AssetPage /> ,
80- errorElement : < ErrorPage title = { assetPageTitle } /> ,
50+ template : Urls . Block . ByRound ,
51+ errorElement : < ErrorPage title = { blockPageTitle } /> ,
52+ element : < BlockPage /> ,
8153 } ,
8254 {
83- template : Urls . Explore . Application . ById ,
84- errorElement : < ErrorPage title = { applicationPageTitle } /> ,
85- element : < ApplicationPage /> ,
55+ template : Urls . Block . ByRound . Group . ById ,
56+ errorElement : < ErrorPage title = { groupPageTitle } /> ,
57+ element : < GroupPage /> ,
8658 } ,
8759 ] ,
8860 } ,
61+ {
62+ template : Urls . Account . ByAddress ,
63+ element : < AccountPage /> ,
64+ errorElement : < ErrorPage title = { accountPageTitle } /> ,
65+ } ,
66+ {
67+ template : Urls . Asset . ById ,
68+ element : < AssetPage /> ,
69+ errorElement : < ErrorPage title = { assetPageTitle } /> ,
70+ } ,
71+ {
72+ template : Urls . Application . ById ,
73+ errorElement : < ErrorPage title = { applicationPageTitle } /> ,
74+ element : < ApplicationPage /> ,
75+ } ,
8976 {
9077 template : Urls . AppStudio ,
9178 element : < div > App Studio</ div > ,
@@ -94,6 +81,10 @@ export const routes = evalTemplates([
9481 template : Urls . Settings ,
9582 element : < SettingsPage /> ,
9683 } ,
84+ {
85+ template : Urls . Tx ,
86+ element : < TxPage /> ,
87+ } ,
9788 ] ,
9889 } ,
9990] )
0 commit comments