Skip to content

Commit

Permalink
fix dowload file
Browse files Browse the repository at this point in the history
  • Loading branch information
mayalb committed Jan 11, 2024
1 parent 7eee1ed commit 53aa151
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
File renamed without changes.
3 changes: 2 additions & 1 deletion packages/client/src/components/Tutorial/Tutorial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const use4= require("./images/use4.png");

export const Tutorial: React.FC = () => {
const { t } = useTranslation();
const fileUrl = process.env.PUBLIC_URL + '/TUTORIEL.pdf';

return (
<SharedLayout>
Expand All @@ -46,7 +47,7 @@ export const Tutorial: React.FC = () => {
color:'#666666',

}}>
Vous pouvez télécharger le tutorial en cliquant sur <a href={"./images/TUTORIEL.pdf"} download={"TUTORIEL.pdf"}>Tutorial</a>
Vous pouvez télécharger le tutorial en cliquant sur <a href={fileUrl} download={"TUTORIEL.pdf"}>Tutorial</a>
</Typography>
<Typography align='center' variant="h4" gutterBottom={true}>
Avec e-spect@teur, vous pouvez être créateur de projet ou simplement participer à un projet existant.
Expand Down

0 comments on commit 53aa151

Please sign in to comment.