瀏覽代碼

fix div wrapped inside p tag

Abhinav 2 年之前
父節點
當前提交
10629fb8be
共有 1 個文件被更改,包括 12 次插入9 次删除
  1. 12 9
      src/components/Sidebar/SubscriptionCard/contentOverlay/storageSection.tsx

+ 12 - 9
src/components/Sidebar/SubscriptionCard/contentOverlay/storageSection.tsx

@@ -26,21 +26,24 @@ export default function StorageSection({ usage, storage }: Iprops) {
             <Typography variant="body2" color={'text.secondary'}>
                 {constants.STORAGE}
             </Typography>
-
-            <Typography
-                fontWeight={'bold'}
-                sx={{ fontSize: '24px', lineHeight: '30px' }}>
-                <DefaultBox>
+            <DefaultBox>
+                <Typography
+                    fontWeight={'bold'}
+                    sx={{ fontSize: '24px', lineHeight: '30px' }}>
                     {`${makeHumanReadableStorage(usage, 'round-up')} ${
                         constants.OF
                     } ${makeHumanReadableStorage(storage)} ${constants.USED}`}
-                </DefaultBox>
-                <MobileSmallBox>
+                </Typography>
+            </DefaultBox>
+            <MobileSmallBox>
+                <Typography
+                    fontWeight={'bold'}
+                    sx={{ fontSize: '24px', lineHeight: '30px' }}>
                     {`${convertBytesToGBs(usage)} /  ${convertBytesToGBs(
                         storage
                     )} ${constants.GB} ${constants.USED}`}
-                </MobileSmallBox>
-            </Typography>
+                </Typography>
+            </MobileSmallBox>
         </Box>
     );
 }