corrige le lien mort vers le guide auto-entrepreneur

On préfèrera heberger nous même la ressource, le site urssaf étant connu pour ses changements d'adresse sans redirection
pull/1084/head
Johan Girod 2020-06-23 11:43:46 +02:00
parent 97e8a9637f
commit f06152d09f
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']
}
]