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
ff834f0d
Commit
ff834f0d
authored
Sep 02, 2022
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tx link
parent
beec5c82
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 @
ff834f0d
...
@@ -31,7 +31,7 @@ const AddressTagTableItem = ({ item, onEditClick, onDeleteClick }: Props) => {
...
@@ -31,7 +31,7 @@ const AddressTagTableItem = ({ item, onEditClick, onDeleteClick }: Props) => {
return
(
return
(
<
Tr
alignItems=
"top"
key=
{
item
.
id
}
>
<
Tr
alignItems=
"top"
key=
{
item
.
id
}
>
<
Td
>
<
Td
>
<
AddressLinkWithTooltip
address=
{
item
.
transaction_hash
}
/>
<
AddressLinkWithTooltip
address=
{
item
.
transaction_hash
}
type=
"transaction"
/>
</
Td
>
</
Td
>
<
Td
>
<
Td
>
<
Tooltip
label=
{
item
.
name
}
>
<
Tooltip
label=
{
item
.
name
}
>
...
...
ui/shared/AddressLinkWithTooltip.tsx
View file @
ff834f0d
...
@@ -8,9 +8,19 @@ import CopyToClipboard from './CopyToClipboard';
...
@@ -8,9 +8,19 @@ import CopyToClipboard from './CopyToClipboard';
const
FONT_WEIGHT
=
'
600
'
;
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
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
(
return
(
<
HStack
spacing=
{
2
}
alignContent=
"center"
overflow=
"hidden"
>
<
HStack
spacing=
{
2
}
alignContent=
"center"
overflow=
"hidden"
>
<
Link
<
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