From 7e18f97d07882eec75ebb8bf88125fbb61a4b373 Mon Sep 17 00:00:00 2001 From: Beppe Catanese Date: Tue, 5 Dec 2023 08:42:11 +0100 Subject: [PATCH] Style type, code formatting --- react-app/src/dashboard/Payments.js | 115 ++++++++++++++-------------- 1 file changed, 57 insertions(+), 58 deletions(-) diff --git a/react-app/src/dashboard/Payments.js b/react-app/src/dashboard/Payments.js index d51493b..0faff7c 100644 --- a/react-app/src/dashboard/Payments.js +++ b/react-app/src/dashboard/Payments.js @@ -75,58 +75,58 @@ export default function Products() {

- - - - - - - {columns.map((column) => ( - - {column.label} - - ))} - - - - {rows - .slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage) - .map((row) => { - return ( - - {columns.map((column) => { - const value = row[column.id]; - return ( - - {column.format && typeof value === 'number' - ? column.format(value) - : value} - - ); - })} - - ); - })} - -
-
- -
- + + + + + + {columns.map((column) => ( + + {column.label} + + ))} + + + + {rows + .slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage) + .map((row) => { + return ( + + {columns.map((column) => { + const value = row[column.id]; + return ( + + {column.format && typeof value === 'number'? column.format(value) : value} + + ); + })} + + ); + })} + +
+
+ +
@@ -135,10 +135,9 @@ export default function Products() { } const columns = [ - { id: 'id', label: 'ID', minWidth: 100 }, - { id: 'status', label: 'Status', minWidth: 120 }, - { id: 'type', label: 'Type', minWidth: 120 }, - { id: 'created', label: 'Created', minWidth: 220 }, - { id: 'amount', label: 'Amount', minWidth: 150 }, - { id: 'pspReference', label: 'PSP Reference', minWidth: 200 }, + { id: 'id', label: 'ID', minWidth: 100 }, + { id: 'status', label: 'Status', minWidth: 120 }, + { id: 'type', label: 'Type', minWidth: 120 }, + { id: 'created', label: 'Created', minWidth: 220 }, + { id: 'amount', label: 'Amount', minWidth: 150 }, ]; \ No newline at end of file