Newer
Older
import { Checkbox } from '@material-ui/core'
import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
import { SgeStore } from 'models'
import React from 'react'
import { SGEKeysForm } from './SgeConnectView'
interface StepConsentProps {
sgeState: SgeStore
const StepConsent = ({ sgeState, onChange }: StepConsentProps) => {
<div className="stepDetails stepConsent">
<div className="text-16-normal">
{t('auth.enedissgegrandlyon.headConsent')}
{t('auth.enedissgegrandlyon.textConsent')}
<li>{t('auth.enedissgegrandlyon.consentLi1')}</li>
<li>{t('auth.enedissgegrandlyon.consentLi2')}</li>
<li>{t('auth.enedissgegrandlyon.consentLi3')}</li>
<li>{t('auth.enedissgegrandlyon.consentLi4')}</li>
<label htmlFor="dataConsentSge" className="inline">
onChange={e => onChange('dataConsent', e.target.checked)}
<span
dangerouslySetInnerHTML={{
__html: t('auth.enedissgegrandlyon.consentCheck1'),
}}
/>
<label htmlFor="pdlConfirm" className="inline">
onChange={e => onChange('pdlConfirm', e.target.checked)}
<span
dangerouslySetInnerHTML={{
__html: t('auth.enedissgegrandlyon.consentCheck2'),
}}
/>
</label>
</div>
)
}
export default StepConsent