mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
43 lines
982 B
JavaScript
43 lines
982 B
JavaScript
'use strict';
|
|
|
|
import React from 'react';
|
|
|
|
import { getLangText } from '../utils/lang_utils';
|
|
|
|
|
|
let ErrorNotFoundPage = React.createClass({
|
|
propTypes: {
|
|
message: React.PropTypes.string,
|
|
|
|
// Provided from AscribeApp
|
|
currentUser: React.PropTypes.object,
|
|
whitelabel: React.PropTypes.object,
|
|
|
|
// Provided from router
|
|
location: React.PropTypes.object
|
|
},
|
|
|
|
getDefaultProps() {
|
|
return {
|
|
message: getLangText("Oops, the page you are looking for doesn't exist.")
|
|
};
|
|
},
|
|
|
|
render() {
|
|
return (
|
|
<div className="row">
|
|
<div className="col-md-12">
|
|
<div className="error-wrapper">
|
|
<h1>404</h1>
|
|
<p>
|
|
{this.props.message}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
});
|
|
|
|
export default ErrorNotFoundPage;
|