import React from "react"; import Slider from "react-slick"; function NextArrow(props) { const { className, style, onClick } = props; return ( ); } function PrevArrow(props) { const { className, style, onClick } = props; return ( ); } export default class SignatoriesList extends React.Component { constructor(props) { super(props); this.state = { company: {}, width: 1920 }; } componentDidMount() { this.setState({ width: window.innerWidth }) } render() { const settings = { dots: false, infinite: false, speed: 500, slidesToShow: this.state.width < 1279 ? 1 : 2.5, centerMode: false, variableWidth: this.state.width < 1279 ? true : false, dragFree: this.state.width < 1279 ? true : false, centerMode: false, nextArrow: , prevArrow: , }; const { signatories } = this.props; return (
{ signatories !== undefined && signatories !== null && signatories.map((signer, index) => (

{`${ signer.lastname } ${ signer.firstname } ${ signer.middlename }`}

{ signer.jobtitle }

)) }
); } }