Merge pull request #1084 from betagouv/quickfix-johan

corrige le lien mort vers le guide auto-entrepreneur
pull/1013/head
Johan Girod 2020-06-23 13:17:59 +02:00 committed by GitHub
commit 32cc9f1e3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 3 deletions

View File

@ -13,6 +13,8 @@ import { useDispatch, useSelector } from 'react-redux'
import { Link } from 'react-router-dom'
import { RootState } from 'Reducers/rootReducer'
import { LegalStatus } from 'Selectors/companyStatusSelectors'
import GuideAutoEntrepreneurUrl from './Guide_Auto-Entrepreneur.pdf'
import * as Animate from 'Components/ui/animate'
import { CheckItem, Checklist } from 'Components/ui/Checklist'
import StatutDescription from './StatutDescription'
@ -525,9 +527,9 @@ export default function CreateCompany({ statut }: CreateCompanyProps) {
</Link>
{i18n.language === 'fr' && isAutoentrepreneur && (
<a
target="_blank"
className="ui__ interactive card button-choice lighter-bg"
href="https://www.autoentrepreneur.urssaf.fr/portail/files/Guide_Auto-Entrepreneur.pdf"
href={GuideAutoEntrepreneurUrl}
download="guide-devenir-auto-entrepreneur-en-2020"
>
<p>Guide URSSAF auto-entrepreneur 2020</p>
<small>

View File

@ -2,3 +2,8 @@ declare module '*.ttf' {
const content: string
export default content
}
declare module '*.pdf' {
const content: string
export default content
}

View File

@ -82,7 +82,7 @@ module.exports.commonLoaders = ({ legacy = false, file = true } = {}) => {
use: ['raw-loader']
},
{
test: /\.ttf$/,
test: /\.(ttf|pdf)$/,
use: ['file-loader']
}
]