diff --git a/src/App.js b/src/App.js index b0f84a8a..e69275de 100644 --- a/src/App.js +++ b/src/App.js @@ -26,7 +26,7 @@ import { import React, { useCallback, useEffect, useState } from "react"; import "react-bootstrap-typeahead/css/Typeahead.bs5.css"; import "react-bootstrap-typeahead/css/Typeahead.css"; -import { Link, Route, BrowserRouter as Router, Switch } from "react-router-dom"; +import { Link, Route, BrowserRouter as Router, Switch, Redirect } from "react-router-dom"; import { BosLoaderBanner } from "./components/BosLoaderBanner"; import { Navbar } from "./components/navigation/Navbar"; import { useEthersProviderContext } from "./data/web3"; @@ -110,7 +110,7 @@ function App() { if (props.to) { props.to = typeof props.to === "string" && - isValidAttribute("a", "href", props.to) + isValidAttribute("a", "href", props.to) ? props.to : "about:blank"; } @@ -206,27 +206,24 @@ function App() { - {/* I've added the below as the isolated route for rendering the app */} - - - + + - {/* Legacy: */} - - - - - + - - + - - + + {/* I've added the below as the isolated route for rendering the app */} + + + + + {/* Legacy: */} @@ -234,11 +231,11 @@ function App() { - + {/* - + */}