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
11e38938
Unverified
Commit
11e38938
authored
Feb 22, 2023
by
tom goriunov
Committed by
GitHub
Feb 22, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #649 from blockscout/fix-parent-block-link
fix parent block link
parents
1bac4156
8ceb974b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
BlockDetails.tsx
ui/block/BlockDetails.tsx
+1
-1
AddressLink.tsx
ui/shared/address/AddressLink.tsx
+2
-2
No files found.
ui/block/BlockDetails.tsx
View file @
11e38938
...
@@ -306,7 +306,7 @@ const BlockDetails = () => {
...
@@ -306,7 +306,7 @@ const BlockDetails = () => {
hint=
"The hash of the block from which this block was generated"
hint=
"The hash of the block from which this block was generated"
flexWrap=
"nowrap"
flexWrap=
"nowrap"
>
>
<
AddressLink
hash=
{
data
.
parent_hash
}
type=
"block"
id
=
{
String
(
data
.
height
-
1
)
}
/>
<
AddressLink
hash=
{
data
.
parent_hash
}
type=
"block"
blockHeight
=
{
String
(
data
.
height
-
1
)
}
/>
<
CopyToClipboard
text=
{
data
.
parent_hash
}
/>
<
CopyToClipboard
text=
{
data
.
parent_hash
}
/>
</
DetailsInfoItem
>
</
DetailsInfoItem
>
)
}
)
}
...
...
ui/shared/address/AddressLink.tsx
View file @
11e38938
...
@@ -27,7 +27,7 @@ type AddressTokenTxProps = {
...
@@ -27,7 +27,7 @@ type AddressTokenTxProps = {
type
BlockProps
=
{
type
BlockProps
=
{
type
:
'
block
'
;
type
:
'
block
'
;
hash
:
string
;
hash
:
string
;
h
eight
:
string
;
blockH
eight
:
string
;
}
}
type
AddressTokenProps
=
{
type
AddressTokenProps
=
{
...
@@ -48,7 +48,7 @@ const AddressLink = (props: Props) => {
...
@@ -48,7 +48,7 @@ const AddressLink = (props: Props) => {
}
else
if
(
type
===
'
token
'
)
{
}
else
if
(
type
===
'
token
'
)
{
url
=
route
({
pathname
:
'
/token/[hash]
'
,
query
:
{
hash
}
});
url
=
route
({
pathname
:
'
/token/[hash]
'
,
query
:
{
hash
}
});
}
else
if
(
type
===
'
block
'
)
{
}
else
if
(
type
===
'
block
'
)
{
url
=
route
({
pathname
:
'
/block/[height]
'
,
query
:
{
height
:
props
.
h
eight
}
});
url
=
route
({
pathname
:
'
/block/[height]
'
,
query
:
{
height
:
props
.
blockH
eight
}
});
}
else
if
(
type
===
'
address_token
'
)
{
}
else
if
(
type
===
'
address_token
'
)
{
url
=
route
({
pathname
:
'
/address/[hash]
'
,
query
:
{
hash
,
tab
:
'
token_transfers
'
,
token_hash
:
props
.
tokenHash
,
scroll_to_tabs
:
'
true
'
}
});
url
=
route
({
pathname
:
'
/address/[hash]
'
,
query
:
{
hash
,
tab
:
'
token_transfers
'
,
token_hash
:
props
.
tokenHash
,
scroll_to_tabs
:
'
true
'
}
});
}
else
{
}
else
{
...
...
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