feat: transactions table
This commit is contained in:
parent
1ead9fe359
commit
d6166ce752
29 changed files with 1204 additions and 726 deletions
|
|
@ -26,15 +26,12 @@ const formatName = idCardData => {
|
|||
/* Expects a transaction object */
|
||||
const displayName = ({
|
||||
isAnonymous,
|
||||
customerName,
|
||||
customerIdCardData,
|
||||
customerPhone,
|
||||
customerEmail,
|
||||
}) =>
|
||||
isAnonymous
|
||||
? 'Anonymous'
|
||||
: customerName ||
|
||||
customerEmail ||
|
||||
R.defaultTo(customerPhone, formatName(customerIdCardData))
|
||||
: formatName(customerIdCardData) || customerEmail || customerPhone
|
||||
|
||||
export { displayName, formatFullName, formatName }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
const defaultMaterialTableOpts = {
|
||||
enableKeyboardShortcuts: false,
|
||||
enableGlobalFilter: false,
|
||||
paginationDisplayMode: 'pages',
|
||||
enableColumnActions: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue