|
|
|
@ -1,14 +1,17 @@
|
|
|
|
|
/* eslint react/prop-types: 0 */
|
|
|
|
|
import React, { Component } from "react";
|
|
|
|
|
import React, { useContext } from "react";
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
|
|
|
import { faGoogleDrive } from "@fortawesome/free-brands-svg-icons";
|
|
|
|
|
import { AppContext } from "../../AppContext"
|
|
|
|
|
|
|
|
|
|
const Gform = (props) => {
|
|
|
|
|
const context = useContext(AppContext);
|
|
|
|
|
console.log(context);
|
|
|
|
|
|
|
|
|
|
class Gform extends Component {
|
|
|
|
|
render () {
|
|
|
|
|
return (
|
|
|
|
|
<a
|
|
|
|
|
className={this.props.className}
|
|
|
|
|
href={this.context.feedbackForm}
|
|
|
|
|
className={props.className}
|
|
|
|
|
href={context.feedbackForm}
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
|
>
|
|
|
|
@ -16,7 +19,10 @@ class Gform extends Component {
|
|
|
|
|
Votre avis nous intéresse !
|
|
|
|
|
</a>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Gform.propTypes = {
|
|
|
|
|
className: PropTypes.string,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Gform;
|
|
|
|
|