Jessedbrown's picture
feat: add statement, statement transaction and loading skeleton
8cd46d1
Raw History Blame Contribute Delete
709 Bytes
import React from 'react';
import { Container } from './style';
function index(props) {
const differentColors = (category) => {
switch (category) {
case (category = 'Depósito'):
return '#00b563';
case (category = 'Pagamento'):
return '#b50052';
case (category = 'Retirada'):
return 'b56300';
default:
return null;
}
};
return (
<Container>
<div>
<p style={{ color: differentColors(props.category) }}>
{props.category}
</p>
</div>
<div>
<p>R$ {props.amount}</p>
</div>
<div>
<p>{props.created_at}</p>
</div>
</Container>
);
}
export default index;