All files / src/components/Settings/Business/Documents GiveDocumentsSkeleton.tsx

100% Statements 3/3
50% Branches 2/4
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44      1x 2x 2x                                                                            
import { Box, Skeleton } from "@mui/material";
import { useCustomThemeV2 } from "@theme/hooks/useCustomThemeV2";
 
const GiveDocumentsSkeleton = () => {
  const { isDesktopView } = useCustomThemeV2();
  return (
    <Box
      display="flex"
      flexDirection="column"
      gap={3.75}
      mt={isDesktopView ? 4 : 5.75}
    >
      <Skeleton
        width={isDesktopView ? "391px" : "100%"}
        sx={{
          borderRadius: "16px",
        }}
        variant="rounded"
        height="25px"
      />
      <Box display="flex" flexDirection="column" gap={2.5}>
        <Skeleton
          width="100%"
          sx={{
            borderRadius: "20px",
          }}
          variant="rounded"
          height="280px"
        />
        <Skeleton
          width="100%"
          sx={{
            borderRadius: "20px",
          }}
          variant="rounded"
          height="164px"
        />
      </Box>
    </Box>
  );
};
 
export default GiveDocumentsSkeleton;