Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import { useI18n } from 'cozy-ui/transpiled/react/I18n'
import React from 'react'
const StepConsent = ({
formConsent,
setFormConsent,
}: {
formConsent: {
dataConsent: boolean
pceConfirm: boolean
}
setFormConsent: React.Dispatch<
React.SetStateAction<{
dataConsent: boolean
pceConfirm: boolean
}>
>
}) => {
const { t } = useI18n()
return (
<div className="stepDetails stepConsent">
<div className="text-16-normal">
{t('auth.grdfgrandlyon.headConsent')}
</div>
<h2 className="text-22-bold">{t('auth.grdfgrandlyon.textConsent')}</h2>
<ul className="text-16-normal">
<li>{t('auth.grdfgrandlyon.consentLi1')}</li>
<li>{t('auth.grdfgrandlyon.consentLi2')}</li>
</ul>
<label className="inline">
<input
id="dataConsent"
type="checkbox"
name="Data-consent-validation"
className="inputCheckbox"
checked={formConsent.dataConsent}
onChange={e =>
setFormConsent(prev => ({ ...prev, dataConsent: e.target.checked }))
}
/>
<span
dangerouslySetInnerHTML={{
__html: t('auth.grdfgrandlyon.consentCheck1'),
}}
/>
</label>
<label className="inline">
<input
id="pdlConfirm"
type="checkbox"
name="Data-consent-validation"
className="inputCheckbox"
checked={formConsent.pceConfirm}
onChange={e =>
setFormConsent(prev => ({ ...prev, pceConfirm: e.target.checked }))
}
/>
<span>{t('auth.grdfgrandlyon.consentCheck2')}</span>
</label>
</div>
)
}
export default StepConsent