Browse Source

feat(create-vote-success) : Add Google FORM link

master
Clement G 2 years ago
parent
commit
e2fbce8838
  1. 22
      src/components/banner/Gform.jsx
  2. 13
      src/components/views/VoteSuccess.jsx

22
src/components/banner/Gform.jsx

@ -0,0 +1,22 @@
/* eslint react/prop-types: 0 */
import React from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faGoogleDrive } from "@fortawesome/free-brands-svg-icons";
const Gform = props => {
return (
<a
className={props.className}
href="https://docs.google.com/forms/d/1Y5ocQscSkHFZdniR7Lvc9mbkJYe9ZIC4w0tOvC4rDZo/viewform?edit_requested=true"
target="_blank"
rel="noopener noreferrer"
>
<FontAwesomeIcon icon={faGoogleDrive} className="mr-2" />
Votre avis nous intéresse !
</a>
);
};
export default Gform;
//https://docs.google.com/forms/d/1Y5ocQscSkHFZdniR7Lvc9mbkJYe9ZIC4w0tOvC4rDZo/viewform?edit_requested=true

13
src/components/views/VoteSuccess.jsx

@ -6,6 +6,7 @@ import logoLine from "../../logos/logo-line-white.svg";
import { Link } from "react-router-dom";
import { AppContext } from "../../AppContext";
import Paypal from "../banner/Paypal";
import Gform from "../banner/Gform";
class VoteSuccess extends Component {
static contextType = AppContext;
@ -22,19 +23,15 @@ class VoteSuccess extends Component {
<Col className="text-center offset-lg-3" lg="6">
<h2>{t("Your participation was recorded with success!")}</h2>
<p>{t("Thanks for your participation.")}</p>
<div className="mt-3">
<div className="mt-3">
<Gform className="btn btn-secondary"/>
</div>
<div className="mt-5">
<Paypal btnColor="btn-success" />
</div>
</Col>
</Row>
<Row className="mt-4">
<Col className="text-center">
<Link to="/" className="btn btn-secondary">
{t("Go back to homepage")}
</Link>
</Col>
</Row>
</Container>
);
}

Loading…
Cancel
Save