feat: added an editable option for the receipt printing active status
feat: create an EditableProperty component feat: added boolean properties table and missing properties chore: integrated receipt printing page on op info page fix: fixed style issues in the boolean properties table feat: added a custom prefixText on the editable property component chore: commented out currently unused features fix: fixed boolean properties table color chore: removed debug logs fix: boolean properties table cancel button was saving instead of canceling fix: receipt printing properties where wrong (customText currently isn't used, and customerNameOrPhoneNumber was using the wrong property)
This commit is contained in:
parent
840788e044
commit
5256301eff
9 changed files with 353 additions and 23 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import baseStyles from 'src/pages/Logs.styles'
|
||||
import { tableCellColor, zircon } from 'src/styling/variables'
|
||||
import { backgroundColor, zircon } from 'src/styling/variables'
|
||||
|
||||
const { fillColumn } = baseStyles
|
||||
|
||||
|
|
@ -14,20 +14,28 @@ const booleanPropertiesTableStyles = {
|
|||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
'&:nth-child(even)': {
|
||||
backgroundColor: tableCellColor
|
||||
backgroundColor: backgroundColor
|
||||
},
|
||||
'&:nth-child(odd)': {
|
||||
backgroundColor: zircon
|
||||
},
|
||||
minHeight: 32,
|
||||
height: 'auto',
|
||||
padding: [[8, 16, 8, 24]],
|
||||
boxShadow: '0 0 0 0 rgba(0, 0, 0, 0)'
|
||||
},
|
||||
tableCell: {
|
||||
leftTableCell: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
width: '100%',
|
||||
height: 32,
|
||||
padding: [[5, 14, 5, 20]]
|
||||
justifyContent: 'left',
|
||||
width: 200,
|
||||
padding: [0]
|
||||
},
|
||||
rightTableCell: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'right',
|
||||
padding: [0]
|
||||
},
|
||||
transparentButton: {
|
||||
'& > *': {
|
||||
|
|
@ -51,7 +59,7 @@ const booleanPropertiesTableStyles = {
|
|||
radioButtons: {
|
||||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
marginRight: -15
|
||||
margin: [-15]
|
||||
},
|
||||
rightLink: {
|
||||
marginLeft: '20px'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue