feat: Prevent leaving the page without saving (#431)
* fix: make all fields required on the Terms & Conditions page if Show on screen is enabled fix: enable/disable the Terms & Conditions form based on the Show on screen toggle fix: replaced deactivated field with plain text when not editing fix: make de non editable text content field scrollable style: make it follow the same style as the other screens, with the edit button and links to save and cancel feat: created Prompt component to avoid leaving pages without saving feat: applied component to the editable table feat: applied component to the Cashout, Commissions, Locales, Cashboxes, Notifications, CryptoBalanceOverrides and Wallet pages feat: applied component to the ContactInfo and ReceiptPrinting pages refactor: export the default prompt message to be used in other contexts fix: applied prompt component to the Operator Info pages fix: create routes for the operator info components feat: applied the Prompt component to the Contact Info and Receipt pages feat: applied the Prompt component to the Terms & Conditions page * refactor: move prompt to components * feat: use formik on the boolean properties table * chore: removed console.logs chore: removed comments refactor: moved BooleanCell to the BooleanPropertiesTable file and make it not a formik field
This commit is contained in:
parent
dbfb37a756
commit
3c0f4ec194
10 changed files with 173 additions and 129 deletions
|
|
@ -99,43 +99,35 @@ const ReceiptPrinting = memo(() => {
|
|||
elements={[
|
||||
{
|
||||
name: 'operatorWebsite',
|
||||
display: 'Operator website',
|
||||
value: receiptPrintingConfig.operatorWebsite
|
||||
display: 'Operator website'
|
||||
},
|
||||
{
|
||||
name: 'operatorEmail',
|
||||
display: 'Operator email',
|
||||
value: receiptPrintingConfig.operatorEmail
|
||||
display: 'Operator email'
|
||||
},
|
||||
{
|
||||
name: 'operatorPhone',
|
||||
display: 'Operator phone',
|
||||
value: receiptPrintingConfig.operatorPhone
|
||||
display: 'Operator phone'
|
||||
},
|
||||
{
|
||||
name: 'companyNumber',
|
||||
display: 'Company number',
|
||||
value: receiptPrintingConfig.companyNumber
|
||||
display: 'Company number'
|
||||
},
|
||||
{
|
||||
name: 'machineLocation',
|
||||
display: 'Machine location',
|
||||
value: receiptPrintingConfig.machineLocation
|
||||
display: 'Machine location'
|
||||
},
|
||||
{
|
||||
name: 'customerNameOrPhoneNumber',
|
||||
display: 'Customer name or phone number (if known)',
|
||||
value: receiptPrintingConfig.customerNameOrPhoneNumber
|
||||
display: 'Customer name or phone number (if known)'
|
||||
},
|
||||
{
|
||||
name: 'exchangeRate',
|
||||
display: 'Exchange rate',
|
||||
value: receiptPrintingConfig.exchangeRate
|
||||
display: 'Exchange rate'
|
||||
},
|
||||
{
|
||||
name: 'addressQRCode',
|
||||
display: 'Address QR code',
|
||||
value: receiptPrintingConfig.addressQRCode
|
||||
display: 'Address QR code'
|
||||
}
|
||||
]}
|
||||
save={save}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue