Merge pull request #1755 from RafaelTaranto/backport/cashbox-tables
LAM-820 backport: cashbox tables
This commit is contained in:
commit
748f1371d1
2 changed files with 16 additions and 8 deletions
|
|
@ -5,7 +5,7 @@ export default {
|
||||||
height: 36
|
height: 36
|
||||||
},
|
},
|
||||||
tBody: {
|
tBody: {
|
||||||
maxHeight: '65vh',
|
maxHeight: 'calc(100vh - 350px)',
|
||||||
overflow: 'auto'
|
overflow: 'auto'
|
||||||
},
|
},
|
||||||
tableWidth: {
|
tableWidth: {
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,12 @@ const styles = {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
justifyContent: 'space-between'
|
justifyContent: 'space-between'
|
||||||
|
},
|
||||||
|
tableWrapper: {
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
|
flex: 1,
|
||||||
|
marginBottom: 80
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -243,13 +249,15 @@ const CashboxHistory = ({ machines, currency, timezone }) => {
|
||||||
]
|
]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DataTable
|
<div className={classes.tableWrapper}>
|
||||||
loading={loading}
|
<DataTable
|
||||||
name="cashboxHistory"
|
loading={loading}
|
||||||
elements={elements}
|
name="cashboxHistory"
|
||||||
data={batches}
|
elements={elements}
|
||||||
emptyText="No cash box batches so far"
|
data={batches}
|
||||||
/>
|
emptyText="No cash box batches so far"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue