Skip to content

Commit 8b4fd16

Browse files
committed
[UPD] replace PDF placeholder with JotForm link
1 parent 0ced3db commit 8b4fd16

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

locales/fr/index.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@
2828
"Name": "Nom",
2929
"Email": "Courriel",
3030
"Message": "Message",
31-
"Send": "Envoyer"
31+
"Send": "Envoyer",
32+
"https://form.jotform.com/211253962199057": "https://form.jotform.com/211253962199057"
3233
}

src/components/button.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import * as React from "react";
22
import styled from 'styled-components';
3-
import { Trans } from 'gatsby-plugin-react-i18next';
4-
import PDF from '../assets/pdfs/placeholder.pdf';
3+
import { Trans, useTranslation } from 'gatsby-plugin-react-i18next';
54

65
function CallToAction() {
6+
const {t} = useTranslation();
7+
78
return (
89
<ButtonStyle>
9-
<a href={PDF} target="_blank" rel="noreferrer" className="px-4 md:px-6 py-2 text-lg md:text-xl">
10+
<a href={t('https://form.jotform.com/211253962199057')} target="_blank" rel="noreferrer" className="px-4 md:px-6 py-2 text-lg md:text-xl">
1011
<Trans>Retain Us</Trans>
1112
</a>
1213
</ButtonStyle>

0 commit comments

Comments
 (0)