MyCrypto/common/components/RouteNotFound.tsx
James Prado b7ba8ac22d Routing Improvements (#859)
* Nest Routes

* Update routing for subtabs

* Revert 'remove subtabs component'

* Update contract routes

* Update subtabs component

* Remove typo

* Update routing to handle disabled subroutes

* add disable prop to request payment tab

* Update request payment disabled condition

* Add CaptureRouteNotFound & RouteNotFound components

* Update ENS routing

* Remove any type

* Display 404 before unlocking wallet
2018-01-22 06:24:05 -06:00

5 lines
150 B
TypeScript

import React from 'react';
import { Redirect } from 'react-router';
export const RouteNotFound = () => <Redirect to={{ state: { error: true } }} />;