fix: dont display cashbox reset option on history page and wrong header width

This commit is contained in:
José Oliveira 2021-07-06 17:44:28 +01:00 committed by Josh Harvey
parent bf31ace25d
commit ad30468708
2 changed files with 17 additions and 15 deletions

View file

@ -254,21 +254,23 @@ const CashCassettes = () => {
}}
iconClassName={classes.listViewButton}
className={classes.tableWidth}>
<Box alignItems="center" justifyContent="end">
<Label1 className={classes.cashboxReset}>Cashbox reset</Label1>
<Box
display="flex"
alignItems="center"
justifyContent="end"
mr="-4px">
<P className={classes.selection}>{cashboxReset}</P>
<IconButton
onClick={() => setEditingSchema(true)}
className={classes.button}>
<EditIcon />
</IconButton>
{!showHistory && (
<Box alignItems="center" justifyContent="end">
<Label1 className={classes.cashboxReset}>Cashbox reset</Label1>
<Box
display="flex"
alignItems="center"
justifyContent="end"
mr="-4px">
<P className={classes.selection}>{cashboxReset}</P>
<IconButton
onClick={() => setEditingSchema(true)}
className={classes.button}>
<EditIcon />
</IconButton>
</Box>
</Box>
</Box>
)}
</TitleSection>
<div className={classes.tableContainer}>
{!showHistory && (

View file

@ -16,7 +16,7 @@ export default {
tableWidth: {
display: 'flex',
alignItems: 'center',
marginRight: 90
marginRight: 1
},
descriptions: {
color: offColor,