Skip to content

Commit

Permalink
fix: send route
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan committed Sep 7, 2023
1 parent 8edfcbf commit 823a68f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
50 changes: 25 additions & 25 deletions packages/neuron-ui/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,31 +65,6 @@ const mainRouterConfig: RouteObject[] = [
),
children: [...toolsRouters],
},
{
path: 'send',
children: [
{
path: '',
element: (
<>
<Send />
<Outlet />
</>
),
children: [...toolsRouters],
},
{
path: ':address?',
element: (
<>
<Send />
<Outlet />
</>
),
children: [...toolsRouters],
},
],
},
{
path: ':hash',
element: (
Expand All @@ -102,6 +77,31 @@ const mainRouterConfig: RouteObject[] = [
},
],
},
{
path: RoutePath.Send,
children: [
{
path: '',
element: (
<>
<Send />
<Outlet />
</>
),
children: [...toolsRouters],
},
{
path: ':address?',
element: (
<>
<Send />
<Outlet />
</>
),
children: [...toolsRouters],
},
],
},
{
path: RoutePath.History,
children: [
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/utils/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export enum RoutePath {
Overview = '/overview',
WalletWizard = '/wizard/',
Wallet = '/wallet',
Send = '/overview/send',
Send = '/send',
Receive = '/receive',
History = '/history',
Settings = '/settings',
Expand Down

0 comments on commit 823a68f

Please sign in to comment.