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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | 4x 72x 72x | import { Stack, Skeleton } from "@mui/material";
import GiveDivider from "@shared/GiveDivider/GiveDivider";
import { useAppTheme } from "@theme/v2/Provider";
/**
* Reusable skeleton component for check data rows (rows 2 and 3)
* Used in both full skeleton and "Check Now" loading states
*/
const GiveCheckDataRowsSkeleton = () => {
const { palette } = useAppTheme();
return (
<>
{/* Row 2: Three skeleton pieces */}
<Stack spacing={1}>
<Stack direction="row" gap="8px" alignItems="flex-end">
<Skeleton
variant="rounded"
width={120}
height={20}
sx={{ borderRadius: "12px" }}
/>
</Stack>
<Stack
direction="row"
width="100%"
justifyContent="space-between"
alignItems="flex-end"
>
<Skeleton
variant="rounded"
width={87}
height={20}
sx={{ borderRadius: "12px" }}
/>
<Skeleton
variant="rounded"
width={210}
height={20}
sx={{ borderRadius: "12px" }}
/>
</Stack>
</Stack>
{/* Divider */}
<GiveDivider
sx={{
my: "20px",
bgcolor: "transparent",
borderColor: palette.border?.primary,
}}
/>
{/* Row 3: Same as Row 2 */}
<Stack spacing={1}>
<Stack direction="row" gap="8px" alignItems="flex-end">
<Skeleton
variant="rounded"
width={120}
height={20}
sx={{ borderRadius: "12px" }}
/>
</Stack>
<Stack
direction="row"
width="100%"
justifyContent="space-between"
alignItems="flex-end"
>
<Skeleton
variant="rounded"
width={87}
height={20}
sx={{ borderRadius: "12px" }}
/>
<Skeleton
variant="rounded"
width={210}
height={20}
sx={{ borderRadius: "12px" }}
/>
</Stack>
</Stack>
</>
);
};
export default GiveCheckDataRowsSkeleton;
|