ghost-portal/packages/apps/src/Content/NotFound.tsx
Jaco Greeff a66577eda4
More functional component conversions (#1633)
* More functional component conversions

* Cleanups

* functional Elapsed

* Status -> functional

* Couple more

* One more tiny one
2019-09-19 17:57:32 +02:00

18 lines
481 B
TypeScript

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