@@ -31,10 +31,10 @@ function InfoGroupCard({ children, title, ...props }) {
31
31
) ;
32
32
}
33
33
34
- function InfoRow ( { label, children, ...props } ) {
34
+ function InfoRow ( { label, children, className , ...props } ) {
35
35
return (
36
36
< >
37
- < div className = " d-flex justify-content-between" { ...props } >
37
+ < div className = { ` d-flex justify-content-between ${ className } ` } { ...props } >
38
38
< div className = "me-2 flex-fill" >
39
39
< em > { label } :</ em >
40
40
</ div >
@@ -120,10 +120,6 @@ export default function AggregatorStatus({ showContent = true }) {
120
120
return ( ( value / total ) * 100 ) . toFixed ( 0 ) ;
121
121
}
122
122
123
- function capitalizeFirstLetter ( string ) {
124
- return string . charAt ( 0 ) . toUpperCase ( ) + string . slice ( 1 ) ;
125
- }
126
-
127
123
return fallbackToEpochSetting ? (
128
124
< Stack direction = "horizontal" >
129
125
< Collapse in = { showContent } >
@@ -138,11 +134,12 @@ export default function AggregatorStatus({ showContent = true }) {
138
134
< div id = "contentRow" >
139
135
< Row className = "d-flex flex-wrap justify-content-md-center" >
140
136
< InfoGroupCard title = { `Epoch ${ aggregatorStatus . epoch } ` } >
137
+ < InfoRow label = "Cardano Network" className = "text-capitalize" >
138
+ { aggregatorStatus . cardano_network }
139
+ </ InfoRow >
141
140
< InfoRow label = "Cardano Era" > { aggregatorStatus . cardano_era } </ InfoRow >
142
- < InfoRow label = "Mithril Era" >
143
- { aggregatorStatus . mithril_era
144
- ? capitalizeFirstLetter ( aggregatorStatus . mithril_era )
145
- : "" }
141
+ < InfoRow label = "Mithril Era" className = "text-capitalize" >
142
+ { aggregatorStatus . mithril_era }
146
143
</ InfoRow >
147
144
</ InfoGroupCard >
148
145
0 commit comments