Download web/src/Pages/Statement/index.js from Jessedbrown/warran: direct link, hf CLI and curl.
- Browser
- Download file 923 Bytes
-
https://huggingface.co/Jessedbrown/warran/resolve/main/web/src/Pages/Statement/index.js
- Command line
-
hf download hf://Jessedbrown/warran/web/src/Pages/Statement/index.js
-
curl -L -o index.js https://huggingface.co/Jessedbrown/warran/resolve/main/web/src/Pages/Statement/index.js
923 Bytes
| import React, { useState } from 'react'; | |
| import SkeletonTransaction from '../../components/SkeletonTransaction'; | |
| import StatementTransaction from '../../components/StatementTransaction'; | |
| import { Container } from './style'; | |
| function Statement(props) { | |
| const loading = props.loading; | |
| const statement = props.statement; | |
| return ( | |
| <Container> | |
| <h2>Últimas movimentações</h2> | |
| <div> | |
| {loading && !statement && <SkeletonTransaction transactions={5} />} | |
| {statement && | |
| statement.map((transaction,index) => { | |
| return ( | |
| <StatementTransaction | |
| loading={loading} | |
| category={transaction.category} | |
| created_at={transaction.created_at} | |
| amount={transaction.amount} | |
| key={index} | |
| /> | |
| ); | |
| })} | |
| </div> | |
| </Container> | |
| ); | |
| } | |
| export default Statement; | |