mirror of
https://github.com/chaoticbackup/chaoticbackup.github.io.git
synced 2026-04-14 04:45:53 -05:00
21 lines
434 B
JavaScript
21 lines
434 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import s from '../styles/pageNotFound.style';
|
|
|
|
const propTypes = {
|
|
location: PropTypes.object.isRequired,
|
|
};
|
|
|
|
function PageNotFound({ location }) {
|
|
return (
|
|
<p style={s.p}>
|
|
Page not found - the path, {s.code(location.pathname)},
|
|
did not match any React Router routes.
|
|
</p>
|
|
);
|
|
}
|
|
|
|
PageNotFound.propTypes = propTypes;
|
|
|
|
export default PageNotFound;
|