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
7c4e17d3
Unverified
Commit
7c4e17d3
authored
Oct 03, 2022
by
Igor Stuev
Committed by
GitHub
Oct 03, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #203 from blockscout/txs-fix
txs fix
parents
ce672c4d
aa6b8d67
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
TxAdditionalInfo.tsx
ui/txs/TxAdditionalInfo.tsx
+5
-3
TxAdditionalInfoButton.tsx
ui/txs/TxAdditionalInfoButton.tsx
+1
-1
TxsListItem.tsx
ui/txs/TxsListItem.tsx
+1
-1
TxsTable.tsx
ui/txs/TxsTable.tsx
+2
-2
No files found.
ui/txs/TxAdditionalInfo.tsx
View file @
7c4e17d3
...
...
@@ -5,6 +5,7 @@ import type ArrayElement from 'types/utils/ArrayElement';
import
type
{
txs
}
from
'
data/txs
'
;
import
useNetwork
from
'
lib/hooks/useNetwork
'
;
import
{
nbsp
}
from
'
lib/html-entities
'
;
import
useLink
from
'
lib/link/useLink
'
;
import
TextSeparator
from
'
ui/shared/TextSeparator
'
;
import
Utilization
from
'
ui/shared/Utilization
'
;
...
...
@@ -23,6 +24,7 @@ const TxAdditionalInfo = ({ tx }: { tx: ArrayElement<typeof txs> }) => {
color
:
'
gray.500
'
,
fontWeight
:
600
,
marginBottom
:
3
,
fontSize
:
'
sm
'
,
};
const
link
=
useLink
();
...
...
@@ -33,7 +35,7 @@ const TxAdditionalInfo = ({ tx }: { tx: ArrayElement<typeof txs> }) => {
<
Box
{
...
sectionProps
}
mb=
{
4
}
>
<
Text
{
...
sectionTitleProps
}
>
Transaction fee
</
Text
>
<
Flex
>
<
Text
>
{
tx
.
fee
.
value
}
{
selectedNetwork
?.
currency
}
</
Text
>
<
Text
>
{
tx
.
fee
.
value
}
{
nbsp
}
{
selectedNetwork
?.
currency
}
</
Text
>
<
Text
variant=
"secondary"
ml=
{
1
}
>
($
{
tx
.
fee
.
value_usd
.
toFixed
(
2
)
}
)
</
Text
>
</
Flex
>
</
Box
>
...
...
@@ -66,7 +68,7 @@ const TxAdditionalInfo = ({ tx }: { tx: ArrayElement<typeof txs> }) => {
<
Box
>
<
Text
as=
"span"
fontWeight=
"500"
>
Txn type:
</
Text
>
<
Text
fontWeight=
"600"
as=
"span"
>
{
tx
.
type
.
value
}
</
Text
>
<
Text
fontWeight=
"400"
as=
"span"
ml=
{
1
}
>
(
{
tx
.
type
.
eip
}
)
</
Text
>
<
Text
fontWeight=
"400"
as=
"span"
ml=
{
1
}
color=
"gray.500"
>
(
{
tx
.
type
.
eip
}
)
</
Text
>
</
Box
>
<
Box
>
<
Text
as=
"span"
fontWeight=
"500"
>
Nonce:
</
Text
>
...
...
@@ -77,7 +79,7 @@ const TxAdditionalInfo = ({ tx }: { tx: ArrayElement<typeof txs> }) => {
<
Text
fontWeight=
"600"
as=
"span"
>
{
tx
.
position
}
</
Text
>
</
Box
>
</
Box
>
<
Link
href=
{
link
(
'
tx_index
'
,
{
id
:
tx
.
hash
})
}
>
More details
</
Link
>
<
Link
fontSize=
"sm"
href=
{
link
(
'
tx_index
'
,
{
id
:
tx
.
hash
})
}
>
More details
</
Link
>
</>
);
};
...
...
ui/txs/TxAdditionalInfoButton.tsx
View file @
7c4e17d3
...
...
@@ -13,7 +13,7 @@ const TxAdditionalInfoButton = ({ isOpen, onClick }: {isOpen?: boolean; onClick?
const
infoColor
=
useColorModeValue
(
'
blue.600
'
,
'
blue.300
'
);
return
(
<
Center
ref=
{
ref
}
background=
{
isOpen
?
infoBgColor
:
'
unset
'
}
borderRadius=
"8px"
w=
"
30px"
h=
"30
px"
onClick=
{
onClick
}
>
<
Center
ref=
{
ref
}
background=
{
isOpen
?
infoBgColor
:
'
unset
'
}
borderRadius=
"8px"
w=
"
24px"
h=
"24
px"
onClick=
{
onClick
}
>
<
Icon
as=
{
infoIcon
}
boxSize=
{
5
}
...
...
ui/txs/TxsListItem.tsx
View file @
7c4e17d3
...
...
@@ -63,7 +63,7 @@ const TxsListItem = ({ tx }: {tx: ArrayElement<typeof txs>}) => {
/>
</
Address
>
</
Flex
>
<
Text
variant=
"secondary"
fontWeight=
"400"
>
{
dayjs
(
tx
.
timestamp
).
fromNow
()
}
</
Text
>
<
Text
variant=
"secondary"
fontWeight=
"400"
fontSize=
"sm"
>
{
dayjs
(
tx
.
timestamp
).
fromNow
()
}
</
Text
>
</
Flex
>
<
Flex
mt=
{
3
}
>
<
Text
as=
"span"
whiteSpace=
"pre"
>
Method
</
Text
>
...
...
ui/txs/TxsTable.tsx
View file @
7c4e17d3
...
...
@@ -28,9 +28,9 @@ const TxsTable = ({ txs, sort, sorting }: Props) => {
<
Th
width=
"18%"
>
Txn hash
</
Th
>
<
Th
width=
"15%"
>
Method
</
Th
>
<
Th
width=
"11%"
>
Block
</
Th
>
<
Th
width=
{
{
xl
:
'
128px
'
,
base
:
'
58
px
'
}
}
>
From
</
Th
>
<
Th
width=
{
{
xl
:
'
128px
'
,
base
:
'
66
px
'
}
}
>
From
</
Th
>
<
Th
width=
{
{
xl
:
'
36px
'
,
base
:
'
0
'
}
}
></
Th
>
<
Th
width=
{
{
xl
:
'
128px
'
,
base
:
'
58
px
'
}
}
>
To
</
Th
>
<
Th
width=
{
{
xl
:
'
128px
'
,
base
:
'
66
px
'
}
}
>
To
</
Th
>
<
Th
width=
"18%"
isNumeric
>
<
Link
onClick=
{
sort
(
'
val
'
)
}
display=
"flex"
justifyContent=
"end"
>
{
sorting
===
'
val-asc
'
&&
<
Icon
boxSize=
{
5
}
as=
{
rightArrowIcon
}
transform=
"rotate(-90deg)"
/>
}
...
...
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