ChangelogSkeleton.js
29 lines
| 1 | /** |
| 2 | * External Dependencies |
| 3 | */ |
| 4 | import { Box, Skeleton, SkeletonText, Stack } from "@chakra-ui/react"; |
| 5 | import React from "react"; |
| 6 | |
| 7 | const ChangelogSkeleton = () => { |
| 8 | return ( |
| 9 | <> |
| 10 | {Array.from({ length: 5 }).map((_, i) => ( |
| 11 | <Box key={i} mt={i > 0 ? "20px" : undefined}> |
| 12 | <Stack |
| 13 | direction="row" |
| 14 | align="center" |
| 15 | justify="space-between" |
| 16 | > |
| 17 | <Skeleton height="17px" width="80px" /> |
| 18 | <Skeleton height="10px" width="57px" /> |
| 19 | </Stack> |
| 20 | <Skeleton height="26px" width="60px" mt="20px" /> |
| 21 | <SkeletonText mt="20px" noOfLines={5} spacing="1" /> |
| 22 | </Box> |
| 23 | ))} |
| 24 | </> |
| 25 | ); |
| 26 | }; |
| 27 | |
| 28 | export default ChangelogSkeleton; |
| 29 |