feat: tc photo toggle button
This commit is contained in:
parent
e94f1ff223
commit
44cd957c6d
2 changed files with 19 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ const TermsConditions = () => {
|
|||
const formData = termsAndConditions ?? {}
|
||||
const showOnScreen = termsAndConditions?.active ?? false
|
||||
const addDelayOnScreen = termsAndConditions?.delay ?? false
|
||||
const tcPhoto = termsAndConditions?.tcPhoto ?? false
|
||||
|
||||
const save = it =>
|
||||
saveConfig({
|
||||
|
|
@ -183,6 +184,23 @@ const TermsConditions = () => {
|
|||
<Label2>{showOnScreen ? 'Yes' : 'No'}</Label2>
|
||||
</div>
|
||||
</div>
|
||||
<div className={classes.switchRow}>
|
||||
<P>
|
||||
Capture customer photo on acceptance <br /> of Terms & Conditions
|
||||
screen
|
||||
</P>
|
||||
<div className={classes.switch}>
|
||||
<Switch
|
||||
checked={tcPhoto}
|
||||
onChange={event =>
|
||||
save({
|
||||
tcPhoto: event.target.checked
|
||||
})
|
||||
}
|
||||
/>
|
||||
<Label2>{tcPhoto ? 'Yes' : 'No'}</Label2>
|
||||
</div>
|
||||
</div>
|
||||
<div className={classes.switchRow}>
|
||||
<P>Add 7 seconds delay on screen</P>
|
||||
<div className={classes.switch}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue