spee.ch/client/pages/ErrorPage/index.jsx

24 lines
440 B
React
Raw Normal View History

import React from 'react';
import PropTypes from 'prop-types';
import NavBar from 'containers/NavBar';
class ErrorPage extends React.Component {
render () {
2018-02-07 07:54:06 +01:00
const { error } = this.props;
return (
<div>
<NavBar />
<div className='row row--padded'>
<p>{error}</p>
</div>
</div>
);
}
};
ErrorPage.propTypes = {
error: PropTypes.string.isRequired,
};
export default ErrorPage;