diff --git a/src/TransactionList.js b/src/TransactionList.js index d62603b90532be8d7a424aa58524ab69c0f81c62..c52de0e5af50a86ee6860a81af3355dc4fbbdf4e 100644 --- a/src/TransactionList.js +++ b/src/TransactionList.js @@ -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> );