fix: added missing lodash dependency to accounts lib
fix: made the properties table editable even when the receipt printing is off fix: change company registration to company number on the receipt printing page fix: refetch config after saving fix: set fixed height for the editable property row fix: remove debug log fix: placed the options of the BooleanPropertiesTable in a TableCell to avoid raising an error caused by having an <svg> inside a <td> fix: change the receipt options to a switch fix: copied style instead of importing from other component
This commit is contained in:
parent
fbb72e9562
commit
78f3cfd5c1
5 changed files with 84 additions and 126 deletions
|
|
@ -84,28 +84,30 @@ const BooleanPropertiesTable = memo(
|
|||
<TableCell className={classes.leftTableCell}>
|
||||
{element.display}
|
||||
</TableCell>
|
||||
{editing && (
|
||||
<RadioGroup
|
||||
options={radioButtonOptions}
|
||||
value={element.value}
|
||||
onChange={event =>
|
||||
handleRadioButtons(
|
||||
element.name,
|
||||
event.target.value === 'true'
|
||||
)
|
||||
}
|
||||
className={classnames(
|
||||
classes.radioButtons,
|
||||
classes.rightTableCell
|
||||
)}
|
||||
/>
|
||||
)}
|
||||
{!editing && (
|
||||
<BooleanCell
|
||||
className={classes.rightTableCell}
|
||||
value={element.value}
|
||||
/>
|
||||
)}
|
||||
<TableCell className={classes.rightTableCell}>
|
||||
{editing && (
|
||||
<RadioGroup
|
||||
options={radioButtonOptions}
|
||||
value={element.value}
|
||||
onChange={event =>
|
||||
handleRadioButtons(
|
||||
element.name,
|
||||
event.target.value === 'true'
|
||||
)
|
||||
}
|
||||
className={classnames(
|
||||
classes.radioButtons,
|
||||
classes.rightTableCell
|
||||
)}
|
||||
/>
|
||||
)}
|
||||
{!editing && (
|
||||
<BooleanCell
|
||||
className={classes.rightTableCell}
|
||||
value={element.value}
|
||||
/>
|
||||
)}
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
</TableBody>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue