mirror of
https://github.com/strapi/strapi.git
synced 2025-11-05 04:13:36 +00:00
30 lines
737 B
JavaScript
30 lines
737 B
JavaScript
|
|
/**
|
||
|
|
* NotFoundPage
|
||
|
|
*
|
||
|
|
* This is the page we show when the user visits a url that doesn't have a route
|
||
|
|
*
|
||
|
|
* NOTE: while this component should technically be a stateless functional
|
||
|
|
* component (SFC), hot reloading does not currently support SFCs. If hot
|
||
|
|
* reloading is not a neccessity for you then you can refactor it and remove
|
||
|
|
* the linting exception.
|
||
|
|
*/
|
||
|
|
|
||
|
|
import React from 'react';
|
||
|
|
import { FormattedMessage } from 'react-intl';
|
||
|
|
|
||
|
|
import messages from './messages';
|
||
|
|
|
||
|
|
export default class NotFound extends React.Component {
|
||
|
|
render() {
|
||
|
|
return (
|
||
|
|
<div>
|
||
|
|
<div className="container">
|
||
|
|
<h1>
|
||
|
|
<FormattedMessage {...messages.pageNotFound} />
|
||
|
|
</h1>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|