ghost-portal/packages/apps/src/Content/NotFound.tsx
Jaco Greeff 8155e94d05
Simplify routing, redirect to default (#228)
* Simplify routing, redirect to default

* Allow subroutes

* Cleanup unused scripts

* Pass through basePath (router prop)
2018-08-16 10:40:56 +02:00

21 lines
489 B
TypeScript

// Copyright 2017-2018 @polkadot/apps authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import React from 'react';
import { Redirect } from 'react-router';
import routing from '../routing';
type Props = {};
const defaultTo = `/${routing.default}`;
export default class NotFound extends React.PureComponent<Props> {
render () {
return (
<Redirect to={defaultTo} />
);
}
}