aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Widgets/CVPreview/CVPreview.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-29 18:21:37 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-29 19:02:57 +0100
commite4d5b8151802517b2943756fc0d09ffa95e2c4e2 (patch)
tree9e99137a7b64ea7993a8311a7162336a551be8b2 /src/components/Widgets/CVPreview/CVPreview.tsx
parent47b854de26dea24e7838fd0804df103dee99635f (diff)
chore: replace lingui functions with react-intl
Diffstat (limited to 'src/components/Widgets/CVPreview/CVPreview.tsx')
-rw-r--r--src/components/Widgets/CVPreview/CVPreview.tsx16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/components/Widgets/CVPreview/CVPreview.tsx b/src/components/Widgets/CVPreview/CVPreview.tsx
index e52a9b2..08a4c72 100644
--- a/src/components/Widgets/CVPreview/CVPreview.tsx
+++ b/src/components/Widgets/CVPreview/CVPreview.tsx
@@ -1,7 +1,7 @@
import { ExpandableWidget } from '@components/WidgetParts';
-import { Trans } from '@lingui/macro';
import Image from 'next/image';
import Link from 'next/link';
+import { FormattedMessage } from 'react-intl';
import styles from './CVPreview.module.scss';
const CVPreview = ({
@@ -25,9 +25,17 @@ const CVPreview = ({
/>
</div>
<p>
- <Trans>
- Download <Link href={pdf}>CV in PDF</Link>
- </Trans>
+ <FormattedMessage
+ defaultMessage="Download <link>CV in PDF</link>"
+ description="CVPreview: download as PDF link"
+ values={{
+ link: (chunks: string) => (
+ <Link href={pdf}>
+ <a>{chunks}</a>
+ </Link>
+ ),
+ }}
+ />
</p>
</ExpandableWidget>
);