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
d7365d2c
Unverified
Commit
d7365d2c
authored
Oct 26, 2023
by
Igor Stuev
Committed by
GitHub
Oct 26, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1308 from blockscout/zero-fee-fix
stability fixes
parents
ab04ff68
e479df23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
TxFeeStability.tsx
ui/shared/tx/TxFeeStability.tsx
+1
-1
TxAdditionalInfoContent.tsx
ui/txs/TxAdditionalInfoContent.tsx
+15
-10
No files found.
ui/shared/tx/TxFeeStability.tsx
View file @
d7365d2c
...
@@ -27,7 +27,7 @@ const TxFeeStability = ({ data, isLoading, hideUsd, accuracy, className }: Props
...
@@ -27,7 +27,7 @@ const TxFeeStability = ({ data, isLoading, hideUsd, accuracy, className }: Props
return
(
return
(
<
Skeleton
whiteSpace=
"pre"
isLoaded=
{
!
isLoading
}
display=
"flex"
className=
{
className
}
>
<
Skeleton
whiteSpace=
"pre"
isLoaded=
{
!
isLoading
}
display=
"flex"
className=
{
className
}
>
<
span
>
{
valueStr
}
</
span
>
<
span
>
{
valueStr
}
</
span
>
<
TokenEntity
token=
{
data
.
token
}
noIcon
noCopy
onlySymbol
w=
"auto"
/>
{
valueStr
!==
'
0
'
&&
<
TokenEntity
token=
{
data
.
token
}
noIcon
noCopy
onlySymbol
w=
"auto"
/>
}
{
usd
&&
!
hideUsd
&&
<
chakra
.
span
color=
"text_secondary"
>
($
{
usd
}
)
</
chakra
.
span
>
}
{
usd
&&
!
hideUsd
&&
<
chakra
.
span
color=
"text_secondary"
>
($
{
usd
}
)
</
chakra
.
span
>
}
</
Skeleton
>
</
Skeleton
>
);
);
...
...
ui/txs/TxAdditionalInfoContent.tsx
View file @
d7365d2c
...
@@ -11,6 +11,7 @@ import getValueWithUnit from 'lib/getValueWithUnit';
...
@@ -11,6 +11,7 @@ import getValueWithUnit from 'lib/getValueWithUnit';
import
CurrencyValue
from
'
ui/shared/CurrencyValue
'
;
import
CurrencyValue
from
'
ui/shared/CurrencyValue
'
;
import
LinkInternal
from
'
ui/shared/LinkInternal
'
;
import
LinkInternal
from
'
ui/shared/LinkInternal
'
;
import
TextSeparator
from
'
ui/shared/TextSeparator
'
;
import
TextSeparator
from
'
ui/shared/TextSeparator
'
;
import
TxFeeStability
from
'
ui/shared/tx/TxFeeStability
'
;
import
Utilization
from
'
ui/shared/Utilization/Utilization
'
;
import
Utilization
from
'
ui/shared/Utilization/Utilization
'
;
const
TxAdditionalInfoContent
=
({
tx
}:
{
tx
:
Transaction
})
=>
{
const
TxAdditionalInfoContent
=
({
tx
}:
{
tx
:
Transaction
})
=>
{
...
@@ -33,16 +34,20 @@ const TxAdditionalInfoContent = ({ tx }: { tx: Transaction }) => {
...
@@ -33,16 +34,20 @@ const TxAdditionalInfoContent = ({ tx }: { tx: Transaction }) => {
{
!
config
.
UI
.
views
.
tx
.
hiddenFields
?.
tx_fee
&&
(
{
!
config
.
UI
.
views
.
tx
.
hiddenFields
?.
tx_fee
&&
(
<
Box
{
...
sectionProps
}
mb=
{
4
}
>
<
Box
{
...
sectionProps
}
mb=
{
4
}
>
<
Text
{
...
sectionTitleProps
}
>
Transaction fee
</
Text
>
<
Text
{
...
sectionTitleProps
}
>
Transaction fee
</
Text
>
<
Flex
>
{
tx
.
stability_fee
?
(
<
CurrencyValue
<
TxFeeStability
data=
{
tx
.
stability_fee
}
/>
value=
{
tx
.
fee
.
value
}
)
:
(
currency=
{
config
.
UI
.
views
.
tx
.
hiddenFields
?.
fee_currency
?
''
:
config
.
chain
.
currency
.
symbol
}
<
Flex
>
exchangeRate=
{
tx
.
exchange_rate
}
<
CurrencyValue
accuracyUsd=
{
2
}
value=
{
tx
.
fee
.
value
}
flexWrap=
"wrap"
currency=
{
config
.
UI
.
views
.
tx
.
hiddenFields
?.
fee_currency
?
''
:
config
.
chain
.
currency
.
symbol
}
rowGap=
{
0
}
exchangeRate=
{
tx
.
exchange_rate
}
/>
accuracyUsd=
{
2
}
</
Flex
>
flexWrap=
"wrap"
rowGap=
{
0
}
/>
</
Flex
>
)
}
</
Box
>
</
Box
>
)
}
)
}
{
tx
.
gas_used
!==
null
&&
(
{
tx
.
gas_used
!==
null
&&
(
...
...
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