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
be1f9f3e
Unverified
Commit
be1f9f3e
authored
Sep 02, 2022
by
Igor Stuev
Committed by
GitHub
Sep 02, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #123 from blockscout/tx-link
fix tx link
parents
32d9cf05
ff834f0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
TransactionTagTableItem.tsx
...ivateTags/TransactionTagTable/TransactionTagTableItem.tsx
+1
-1
AddressLinkWithTooltip.tsx
ui/shared/AddressLinkWithTooltip.tsx
+12
-2
No files found.
ui/privateTags/TransactionTagTable/TransactionTagTableItem.tsx
View file @
be1f9f3e
...
...
@@ -31,7 +31,7 @@ const AddressTagTableItem = ({ item, onEditClick, onDeleteClick }: Props) => {
return
(
<
Tr
alignItems=
"top"
key=
{
item
.
id
}
>
<
Td
>
<
AddressLinkWithTooltip
address=
{
item
.
transaction_hash
}
/>
<
AddressLinkWithTooltip
address=
{
item
.
transaction_hash
}
type=
"transaction"
/>
</
Td
>
<
Td
>
<
Tooltip
label=
{
item
.
name
}
>
...
...
ui/shared/AddressLinkWithTooltip.tsx
View file @
be1f9f3e
...
...
@@ -8,9 +8,19 @@ import CopyToClipboard from './CopyToClipboard';
const
FONT_WEIGHT
=
'
600
'
;
const
AddressLinkWithTooltip
=
({
address
}:
{
address
:
string
})
=>
{
type
Props
=
{
address
:
string
;
type
?:
'
address
'
|
'
transaction
'
;
}
const
AddressLinkWithTooltip
=
({
address
,
type
=
'
address
'
}:
Props
)
=>
{
const
basePath
=
useBasePath
();
const
url
=
basePath
+
'
/address/
'
+
address
+
'
/tokens#address-tabs
'
;
let
url
;
if
(
type
===
'
transaction
'
)
{
url
=
basePath
+
'
/tx/
'
+
address
;
}
else
{
url
=
basePath
+
'
/address/
'
+
address
+
'
/tokens#address-tabs
'
;
}
return
(
<
HStack
spacing=
{
2
}
alignContent=
"center"
overflow=
"hidden"
>
<
Link
...
...
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