import React, { PropTypes } from 'react'; import InlineSVG from 'react-inlinesvg'; const exitUrl = require('../../../images/exit.svg'); import { browserHistory } from 'react-router'; class About extends React.Component { constructor(props) { super(props); this.closeAboutModal = this.closeAboutModal.bind(this); } componentDidMount() { this.refs.about.focus(); } closeAboutModal() { browserHistory.push(this.props.previousPath); } render() { return (

About

The p5.js Web Editor is an open source project.

Contribute or report a bug.

); } } About.propTypes = { previousPath: PropTypes.string.isRequired }; export default About;