Merge pull request #549 from betagouv/quickfix
Correction de bugs et petites améliorationspull/555/head
commit
85c776c8f7
|
@ -44,7 +44,9 @@ export const LegalNoticeContent = withTranslation()(() => (
|
|||
<br />
|
||||
San Francisco, CA 94107 <br />
|
||||
Site web :
|
||||
<a href="https://www.netlify.com">https://www.netlify.com</a>
|
||||
<a href="https://www.netlify.com" target="_blank">
|
||||
https://www.netlify.com
|
||||
</a>
|
||||
</Trans>
|
||||
</p>
|
||||
<h2>
|
||||
|
@ -52,7 +54,7 @@ export const LegalNoticeContent = withTranslation()(() => (
|
|||
</h2>
|
||||
<p>
|
||||
<Trans i18nKey="legalNotice.contact.content">
|
||||
<a href="mailto:contact@mon-entreprise.beta.gouv.fr">
|
||||
<a target="_blank" href="mailto:contact@mon-entreprise.beta.gouv.fr">
|
||||
contact@mon-entreprise.beta.gouv.fr
|
||||
</a>
|
||||
</Trans>
|
||||
|
|
|
@ -7,21 +7,14 @@ export default class Overlay extends Component {
|
|||
render() {
|
||||
const { onClose, children, ...otherProps } = this.props
|
||||
return (
|
||||
<div id="overlayWrapper" onClick={onClose}>
|
||||
<div id="overlayWrapper">
|
||||
<animate.fromBottom>
|
||||
<FocusTrap
|
||||
focusTrapOptions={{
|
||||
onDeactivate: onClose,
|
||||
clickOutsideDeactivates: true
|
||||
}}>
|
||||
<div
|
||||
aria-modal="true"
|
||||
id="overlayContent"
|
||||
{...otherProps}
|
||||
onClick={e => {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
}}>
|
||||
<div aria-modal="true" id="overlayContent" {...otherProps}>
|
||||
{children}
|
||||
<LinkButton
|
||||
aria-label="close"
|
||||
|
|
|
@ -28,7 +28,7 @@ export default compose(
|
|||
withColours,
|
||||
reduxForm({
|
||||
form: 'conversation',
|
||||
destroyOnUnmount: true
|
||||
destroyOnUnmount: false
|
||||
}),
|
||||
connect(
|
||||
state => ({
|
||||
|
|
|
@ -129,12 +129,17 @@ export default compose(
|
|||
{!valuesToShow && (
|
||||
<div style={{ textAlign: 'center', marginTop: '1em' }}>
|
||||
<Link
|
||||
className="ui__ plain button"
|
||||
className="ui__ cta plain button"
|
||||
target="_parent"
|
||||
to={
|
||||
sitePaths.sécuritéSociale
|
||||
? sitePaths.sécuritéSociale.index
|
||||
: sitePaths.index
|
||||
dottedName.includes('contrat salarié')
|
||||
? sitePaths.sécuritéSociale.salarié
|
||||
: dottedName.includes('auto entrepreneur')
|
||||
? sitePaths.sécuritéSociale['auto-entrepreneur']
|
||||
: dottedName.includes('indépendant')
|
||||
? sitePaths.sécuritéSociale.indépendant
|
||||
: // otherwise
|
||||
sitePaths.sécuritéSociale.index
|
||||
}>
|
||||
<T>Faire une simulation</T>
|
||||
</Link>
|
||||
|
|
Loading…
Reference in New Issue