Ajout des moyens de contact
+ Corrections diverses
This commit is contained in:
26
src/components/ContactButton/ContactButton.js
Normal file
26
src/components/ContactButton/ContactButton.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import React, {Component} from '../../../node_modules/react';
|
||||
import './ContactButton.scss'
|
||||
// import { connect } from "react-redux";
|
||||
// import { bindActionCreators } from "redux";
|
||||
// import * as contactButtonActions from "../../store/contactButton/actions";
|
||||
export default class ContactButton extends Component {
|
||||
// constructor(props) {
|
||||
// super(props);
|
||||
// this.state = {};
|
||||
// }
|
||||
render() {
|
||||
return <div class="column is-3">
|
||||
<a target="_blank" rel="noreferrer noopener" href={this.props.link} class="hide button is-large is-fullw-mobile"
|
||||
title={this.props.title}>
|
||||
<span class="icon">
|
||||
<i class={"fab " + this.props.icon}></i>
|
||||
</span>
|
||||
<span>{this.props.name}</span>
|
||||
</a>
|
||||
</div>;
|
||||
}
|
||||
}
|
||||
// export default connect(
|
||||
// ({ contactButton }) => ({ ...contactButton }),
|
||||
// dispatch => bindActionCreators({ ...contactButtonActions }, dispatch)
|
||||
// )( contactButton );
|
||||
4
src/components/ContactButton/ContactButton.scss
Normal file
4
src/components/ContactButton/ContactButton.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
.component-contact-button{
|
||||
|
||||
}
|
||||
2
src/components/ContactButton/index.js
Normal file
2
src/components/ContactButton/index.js
Normal file
@@ -0,0 +1,2 @@
|
||||
import ContactButton from "./ContactButton"
|
||||
export default ContactButton;
|
||||
Reference in New Issue
Block a user