Skip to content
Snippets Groups Projects
Commit 09a39663 authored by meskio's avatar meskio :tent:
Browse files

Stile a bit the transation list

parent 4a35496f
Branches
Tags
No related merge requests found
......@@ -6,13 +6,14 @@ import Fetcher from './Fetcher';
import { printMoney, printDate } from './util';
const columns = [
{dataField: 'type', text: '', formatter: cell => {
switch (cell) {
case "purchase":
return <FaShoppingBasket />;
default:
return <FaMoneyBillAlt />;
};
{dataField: 'type', text: '', align: 'center',
formatter: cell => {
switch (cell) {
case "purchase":
return <FaShoppingBasket />;
default:
return <FaMoneyBillAlt />;
};
}},
{dataField: 'date', text: 'Fecha', formatter: printDate},
{dataField: 'total', text: 'Total', formatter: cell => printMoney(cell)+""},
......@@ -35,6 +36,8 @@ function TransactionList() {
rowEvents={{
onClick: (_, row) => setClicID(row.ID)
}}
classes="stripped"
bordered={ false }
/>
</Fetcher>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment