@@ -40,6 +40,7 @@ import Utilization from 'ui/shared/Utilization/Utilization';
4040import VerificationSteps from 'ui/shared/verificationSteps/VerificationSteps' ;
4141import ZkSyncL2TxnBatchHashesInfo from 'ui/txnBatches/zkSyncL2/ZkSyncL2TxnBatchHashesInfo' ;
4242
43+ import KDABlockRewards from './BlockRewards' ;
4344import BlockDetailsBaseFeeCelo from './details/BlockDetailsBaseFeeCelo' ;
4445import BlockDetailsBlobInfo from './details/BlockDetailsBlobInfo' ;
4546import BlockDetailsZilliqaQuorumCertificate from './details/BlockDetailsZilliqaQuorumCertificate' ;
@@ -73,7 +74,7 @@ const BlockDetails = ({ query }: Props) => {
7374 return null ;
7475 }
7576
76- const { totalReward, staticReward , burntFees, txFees } = getBlockReward ( data ) ;
77+ const { totalReward, burntFees, txFees } = getBlockReward ( data ) ;
7778
7879 const validatorTitle = getNetworkValidatorTitle ( ) ;
7980
@@ -82,33 +83,7 @@ const BlockDetails = ({ query }: Props) => {
8283 return null ;
8384 }
8485
85- if ( isPlaceholderData ) {
86- return < Skeleton loading w = "525px" h = "20px" /> ;
87- }
88-
89- return (
90- < Text color = "text.secondary" whiteSpace = "break-spaces" >
91- < Tooltip content = "Static block reward" >
92- < span > { staticReward . dividedBy ( WEI ) . toFixed ( ) } </ span >
93- </ Tooltip >
94- { ! txFees . isEqualTo ( ZERO ) && (
95- < >
96- { space } +{ space }
97- < Tooltip content = "Txn fees" >
98- < span > { txFees . dividedBy ( WEI ) . toFixed ( ) } </ span >
99- </ Tooltip >
100- </ >
101- ) }
102- { ! burntFees . isEqualTo ( ZERO ) && (
103- < >
104- { space } -{ space }
105- < Tooltip content = "Burnt fees" >
106- < span > { burntFees . dividedBy ( WEI ) . toFixed ( ) } </ span >
107- </ Tooltip >
108- </ >
109- ) }
110- </ Text >
111- ) ;
86+ return < KDABlockRewards query = { query } /> ;
11287 } ) ( ) ;
11388
11489 const verificationTitle = `${ capitalize ( getNetworkValidationActionText ( ) ) } by` ;
@@ -382,10 +357,9 @@ const BlockDetails = ({ query }: Props) => {
382357 Block reward
383358 </ DetailedInfo . ItemLabel >
384359 < DetailedInfo . ItemValue columnGap = { 1 } >
385- < Skeleton loading = { isPlaceholderData } fontFamily = "var(--kda-typography-family-monospace-font)" >
386- { totalReward . dividedBy ( WEI ) . toFixed ( ) } { currencyUnits . ether }
360+ < Skeleton loading = { isPlaceholderData } minH = "140px" minW = { { base : '100%' , md : '400px' } } w = { { base : '100%' , md : 'min-content' } } >
361+ { rewardBreakDown }
387362 </ Skeleton >
388- { rewardBreakDown }
389363 </ DetailedInfo . ItemValue >
390364 </ >
391365 ) }
0 commit comments