import React from "react"; import { Button, Collapse } from "mdbreact"; import { FormattedMessage, FormattedHTMLMessage } from 'react-intl'; // Custom components import MarketingHeader from '../MarketingHeader'; /** * Marketing page component. */ class MarketingPage extends React.Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); this.onClick1 = this.onClick1.bind(this); this.onClick2 = this.onClick2.bind(this); this.onClick3 = this.onClick3.bind(this); this.onClick4 = this.onClick4.bind(this); this.state = { collapse: false, accordion: false }; } toggle() { this.setState({ collapse: !this.state.collapse }); } onClick1() { let state = ""; if (this.state.accordion !== 1) { state = 1; } else { state = false; } this.setState({ accordion: state }); } onClick2() { let state = ""; if (this.state.accordion !== 2) { state = 2; } else { state = false; } this.setState({ accordion: state }); } onClick3() { let state = ""; if (this.state.accordion !== 3) { state = 3; } else { state = false; } this.setState({ accordion: state }); } onClick4() { let state = ""; if (this.state.accordion !== 4) { state = 4; } else { state = false; } this.setState({ accordion: state }); } render() { return (
); } } export { MarketingPage };