Download web/src/components/SkeletonTransaction/index.js from Jessedbrown/warran: direct link, hf CLI and curl.
- Browser
- Download file 569 Bytes
-
https://huggingface.co/Jessedbrown/warran/resolve/main/web/src/components/SkeletonTransaction/index.js
- Command line
-
hf download hf://Jessedbrown/warran/web/src/components/SkeletonTransaction/index.js
-
curl -L -o index.js https://huggingface.co/Jessedbrown/warran/resolve/main/web/src/components/SkeletonTransaction/index.js
569 Bytes
| import React from 'react'; | |
| import Skeleton from 'react-loading-skeleton'; | |
| import { Container } from './style'; | |
| function SkeletonTransaction(props) { | |
| const skeletonRender = [...Array(props.transactions)].map((item, index) => { | |
| return ( | |
| <Container key={index}> | |
| <div> | |
| <p> | |
| <Skeleton /> | |
| </p> | |
| </div> | |
| <div> | |
| <Skeleton /> | |
| </div> | |
| <div> | |
| <Skeleton /> | |
| </div> | |
| </Container> | |
| ); | |
| }); | |
| return <div>{skeletonRender}</div>; | |
| } | |
| export default SkeletonTransaction; | |