Skip to content

Commit

Permalink
Merge pull request #1755 from RafaelTaranto/backport/cashbox-tables
Browse files Browse the repository at this point in the history
LAM-820 backport: cashbox tables
  • Loading branch information
RafaelTaranto authored Nov 29, 2024
2 parents 7757610 + 902632a commit 14d2856
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
height: 36
},
tBody: {
maxHeight: '65vh',
maxHeight: 'calc(100vh - 350px)',
overflow: 'auto'
},
tableWidth: {
Expand Down
22 changes: 15 additions & 7 deletions new-lamassu-admin/src/pages/Maintenance/CashboxHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ const styles = {
display: 'flex',
flexDirection: 'row',
justifyContent: 'space-between'
},
tableWrapper: {
display: 'flex',
flexDirection: 'column',
flex: 1,
marginBottom: 80
}
}

Expand Down Expand Up @@ -243,13 +249,15 @@ const CashboxHistory = ({ machines, currency, timezone }) => {
]

return (
<DataTable
loading={loading}
name="cashboxHistory"
elements={elements}
data={batches}
emptyText="No cash box batches so far"
/>
<div className={classes.tableWrapper}>
<DataTable
loading={loading}
name="cashboxHistory"
elements={elements}
data={batches}
emptyText="No cash box batches so far"
/>
</div>
)
}

Expand Down

0 comments on commit 14d2856

Please sign in to comment.