Merge pull request #549 from betagouv/quickfix

Correction de bugs et petites améliorations
pull/555/head
Johan Girod 2019-05-23 14:30:57 +02:00 committed by GitHub
commit 85c776c8f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 16 deletions

View File

@ -44,7 +44,9 @@ export const LegalNoticeContent = withTranslation()(() => (
<br />
San Francisco, CA 94107 <br />
Site web :&nbsp;
<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>

View File

@ -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"

View File

@ -28,7 +28,7 @@ export default compose(
withColours,
reduxForm({
form: 'conversation',
destroyOnUnmount: true
destroyOnUnmount: false
}),
connect(
state => ({

View File

@ -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>