Browse Source

fix(gform): switch to Component

master
guhur 2 years ago
committed by GitHub
parent
commit
13e165dc7c
  1. 28
      src/components/banner/Gform.jsx

28
src/components/banner/Gform.jsx

@ -1,20 +1,22 @@
/* eslint react/prop-types: 0 */
import React from "react";
import React, { Component } 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={this.context.feedbackForm}
target="_blank"
rel="noopener noreferrer"
>
<FontAwesomeIcon icon={faGoogleDrive} className="mr-2" />
Votre avis nous intéresse !
</a>
);
class Gform extends Component {
render () {
return (
<a
className={this.props.className}
href={this.context.feedbackForm}
target="_blank"
rel="noopener noreferrer"
>
<FontAwesomeIcon icon={faGoogleDrive} className="mr-2" />
Votre avis nous intéresse !
</a>
);
}
};
export default Gform;
Loading…
Cancel
Save