@@ -18,7 +18,7 @@ const stackStyles = {
1818 ] ,
1919}
2020const stackItemStyles = {
21- root : [ theme . fonts . small ] ,
21+ root : [ theme . fonts . xSmall ] ,
2222}
2323
2424export const SyncStatus = ( {
@@ -28,13 +28,13 @@ export const SyncStatus = ({
2828} : React . PropsWithoutRef < { tipBlockNumber : string ; syncedBlockNumber : string ; bufferBlockNumber ?: number } > ) => {
2929 const [ t ] = useTranslation ( )
3030 if ( tipBlockNumber === '' ) {
31- return < Text variant = "small " > { t ( 'footer.fail-to-fetch-tip-block-number' ) } </ Text >
31+ return < Text variant = "xSmall " > { t ( 'footer.fail-to-fetch-tip-block-number' ) } </ Text >
3232 }
3333
3434 const percentage = + syncedBlockNumber / + tipBlockNumber
3535
3636 return (
37- < div style = { { display : 'flex' , alignItems : 'center' , fontSize : theme . fonts . small . fontSize } } >
37+ < div style = { { display : 'flex' , alignItems : 'center' } } >
3838 { + syncedBlockNumber + bufferBlockNumber < + tipBlockNumber ? (
3939 < >
4040 { t ( 'sync.syncing' ) }
@@ -52,21 +52,12 @@ export const SyncStatus = ({
5252
5353export const NetworkStatus = ( { name, online } : { name : string ; online : boolean } ) => {
5454 return (
55- < Stack horizontal verticalAlign = "center" tokens = { { childrenGap : 5 } } >
55+ < Stack horizontal verticalAlign = "center" tokens = { { childrenGap : 5 } } styles = { stackItemStyles } >
5656 < Icon
5757 iconName = { online ? 'Connected' : 'Disconnected' }
5858 styles = { { root : { display : 'flex' , alignItems : 'center' } } }
5959 />
60- < Text
61- styles = { {
62- root : {
63- fontSize : '14px' ,
64- lineHeight : '14px' ,
65- } ,
66- } }
67- >
68- { name }
69- </ Text >
60+ < Text variant = "xSmall" > { name } </ Text >
7061 </ Stack >
7162 )
7263}
0 commit comments