Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
42bc98ab
Commit
42bc98ab
authored
Nov 14, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix block txs link
parent
0c02904f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
link.ts
lib/link/link.ts
+1
-1
BlockDetails.tsx
ui/block/BlockDetails.tsx
+6
-3
No files found.
lib/link/link.ts
View file @
42bc98ab
...
...
@@ -32,5 +32,5 @@ export default function link(
url
.
searchParams
.
append
(
key
,
value
);
});
return
url
.
pathname
;
return
url
.
toString
()
;
}
ui/block/BlockDetails.tsx
View file @
42bc98ab
...
...
@@ -2,6 +2,7 @@ import { Grid, GridItem, Text, Icon, Link, Box, Tooltip, Alert } from '@chakra-u
import
{
useQuery
}
from
'
@tanstack/react-query
'
;
import
BigNumber
from
'
bignumber.js
'
;
import
capitalize
from
'
lodash/capitalize
'
;
import
NextLink
from
'
next/link
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
React
from
'
react
'
;
import
{
scroller
,
Element
}
from
'
react-scroll
'
;
...
...
@@ -109,9 +110,11 @@ const BlockDetails = () => {
title=
"Transactions"
hint=
"The number of transactions in the block."
>
<
Link
href=
{
link
(
'
block
'
,
{
id
:
router
.
query
.
id
},
{
tab
:
'
txs
'
})
}
>
{
data
.
tx_count
}
transactions
</
Link
>
<
NextLink
href=
{
link
(
'
block
'
,
{
id
:
router
.
query
.
id
},
{
tab
:
'
txs
'
})
}
passHref
>
<
Link
>
{
data
.
tx_count
}
transactions
</
Link
>
</
NextLink
>
</
DetailsInfoItem
>
<
DetailsInfoItem
title=
{
appConfig
.
network
.
verificationType
===
'
validation
'
?
'
Validated by
'
:
'
Mined by
'
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment