@@ -3,6 +3,7 @@ import { observer } from 'mobx-react-lite';
33import { usePrefixedTranslation } from 'hooks' ;
44import { useStore } from 'store' ;
55import { BarChart , List } from 'components/base' ;
6+ import LoaderLines from 'components/common/LoaderLines' ;
67import Stat from 'components/common/Stat' ;
78import Unit from 'components/common/Unit' ;
89import { styled } from 'components/theme' ;
@@ -19,7 +20,11 @@ const StyledStat = styled.div`
1920 margin: 0 10px;
2021
2122 > div {
22- font-size: ${ props => props . theme . sizes . l } ;
23+ font-size: ${ props => props . theme . sizes . m } ;
24+ }
25+
26+ > h4 {
27+ font-size: ${ props => props . theme . sizes . xxs } ;
2328 }
2429 }
2530` ;
@@ -48,6 +53,12 @@ const Styled = {
4853 opacity: 1;
4954 }
5055 ` ,
56+ LoaderLines : styled ( LoaderLines ) `
57+ .line {
58+ margin: 10px 1px;
59+ height: 10px;
60+ }
61+ ` ,
5162} ;
5263
5364const BatchStats : React . FC = ( ) => {
@@ -59,7 +70,7 @@ const BatchStats: React.FC = () => {
5970
6071 const tipProps = { tipPlacement : 'bottom' , tipCapitalize : false } ;
6172
62- const { Wrapper, Stat, BatchCountdown, ViewMode } = Styled ;
73+ const { Wrapper, Stat, BatchCountdown, ViewMode, LoaderLines } = Styled ;
6374 return (
6475 < Wrapper >
6576 < div >
@@ -90,6 +101,7 @@ const BatchStats: React.FC = () => {
90101 />
91102 </ div >
92103 < div >
104+ < Stat label = { l ( 'tier' ) } value = { batchesView . tier || < LoaderLines /> } />
93105 < Stat
94106 label = { l ( 'earned' ) }
95107 value = { < Unit sats = { batchesView . earnedSats } suffix = { false } /> }
0 commit comments