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
b72dd002
Commit
b72dd002
authored
Oct 20, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tx addresses names
parent
1030c2bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
TxDetails.tsx
ui/tx/TxDetails.tsx
+11
-9
No files found.
ui/tx/TxDetails.tsx
View file @
b72dd002
...
@@ -147,9 +147,10 @@ const TxDetails = () => {
...
@@ -147,9 +147,10 @@ const TxDetails = () => {
>
>
<
Address
>
<
Address
>
<
AddressIcon
hash=
{
data
.
from
.
hash
}
/>
<
AddressIcon
hash=
{
data
.
from
.
hash
}
/>
<
AddressLink
ml=
{
2
}
hash=
{
data
.
from
.
hash
}
alias=
{
data
.
from
.
name
}
/>
<
AddressLink
ml=
{
2
}
hash=
{
data
.
from
.
hash
}
/>
<
CopyToClipboard
text=
{
data
.
from
.
hash
}
/>
<
CopyToClipboard
text=
{
data
.
from
.
hash
}
/>
</
Address
>
</
Address
>
{
data
.
from
.
name
&&
<
Text
>
{
data
.
from
.
name
}
</
Text
>
}
{
addressFromTags
.
length
>
0
&&
(
{
addressFromTags
.
length
>
0
&&
(
<
Flex
columnGap=
{
3
}
>
<
Flex
columnGap=
{
3
}
>
{
addressFromTags
}
{
addressFromTags
}
...
@@ -160,17 +161,14 @@ const TxDetails = () => {
...
@@ -160,17 +161,14 @@ const TxDetails = () => {
title=
{
data
.
to
.
is_contract
?
'
Interacted with contract
'
:
'
To
'
}
title=
{
data
.
to
.
is_contract
?
'
Interacted with contract
'
:
'
To
'
}
hint=
"Address (external or contract) receiving the transaction."
hint=
"Address (external or contract) receiving the transaction."
flexWrap=
{
{
base
:
'
wrap
'
,
lg
:
'
nowrap
'
}
}
flexWrap=
{
{
base
:
'
wrap
'
,
lg
:
'
nowrap
'
}
}
columnGap=
{
3
}
>
>
<
Address
mr=
{
3
}
>
<
Address
>
<
AddressIcon
hash=
{
data
.
to
.
hash
}
/>
<
AddressIcon
hash=
{
data
.
to
.
hash
}
/>
<
AddressLink
ml=
{
2
}
hash=
{
data
.
to
.
hash
}
alias=
{
data
.
to
.
name
}
/>
<
AddressLink
ml=
{
2
}
hash=
{
data
.
to
.
hash
}
/>
<
CopyToClipboard
text=
{
data
.
to
.
hash
}
/>
<
CopyToClipboard
text=
{
data
.
to
.
hash
}
/>
</
Address
>
</
Address
>
{
addressToTags
.
length
>
0
&&
(
{
data
.
to
.
name
&&
<
Text
>
{
data
.
to
.
name
}
</
Text
>
}
<
Flex
columnGap=
{
3
}
>
{
addressToTags
}
</
Flex
>
)
}
{
data
.
to
.
is_contract
&&
data
.
result
===
'
success
'
&&
(
{
data
.
to
.
is_contract
&&
data
.
result
===
'
success
'
&&
(
<
Tooltip
label=
"Contract execution completed"
>
<
Tooltip
label=
"Contract execution completed"
>
<
chakra
.
span
display=
"inline-flex"
>
<
chakra
.
span
display=
"inline-flex"
>
...
@@ -185,7 +183,11 @@ const TxDetails = () => {
...
@@ -185,7 +183,11 @@ const TxDetails = () => {
</
chakra
.
span
>
</
chakra
.
span
>
</
Tooltip
>
</
Tooltip
>
)
}
)
}
{
/* <TokenSnippet symbol="UP" name="User Pay" hash="0xA17ed5dFc62D0a3E74D69a0503AE9FdA65d9f212" ml={ 3 }/> */
}
{
addressToTags
.
length
>
0
&&
(
<
Flex
columnGap=
{
3
}
>
{
addressToTags
}
</
Flex
>
)
}
</
DetailsInfoItem
>
</
DetailsInfoItem
>
{
TOKEN_TRANSFERS
.
map
(({
title
,
hint
,
type
})
=>
{
{
TOKEN_TRANSFERS
.
map
(({
title
,
hint
,
type
})
=>
{
const
items
=
data
.
token_transfers
?.
filter
((
token
)
=>
token
.
type
===
type
)
||
[];
const
items
=
data
.
token_transfers
?.
filter
((
token
)
=>
token
.
type
===
type
)
||
[];
...
...
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