import React from 'react'; import Modal from '../../components/modal'; import Data from '../../data/archives/interviews'; import './style.scss'; class InterviewsList extends React.Component { constructor(props) { super(props); this.state = { isInterviewsListModalOpen: false }; this.toggleInterviewsListModal = this.toggleInterviewsListModal.bind(this); } toggleInterviewsListModal() { const { isInterviewsListModalOpen } = this.state; this.setState({ isInterviewsListModalOpen: !isInterviewsListModalOpen }); } render() { const { isInterviewsListModalOpen } = this.state; return (
Interviews ({ Data.length}) {/* eslint-disable-line */} View {/* eslint-disable-line */}
{ (

Interviews

    { Data.map(interview =>
  • { `${interview.name} ${interview.surname}`}
  • ) }
) }
); } } export default InterviewsList;