From 9a282c3bf466522bd4a05ff1d2358541a6dc5e59 Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Sat, 20 Feb 2021 02:41:30 +0330 Subject: [PATCH] redirect / to library --- webUI/react/src/App.tsx | 13 ++++++++----- webUI/react/src/screens/Home.tsx | 13 ------------- 2 files changed, 8 insertions(+), 18 deletions(-) delete mode 100644 webUI/react/src/screens/Home.tsx diff --git a/webUI/react/src/App.tsx b/webUI/react/src/App.tsx index bc24a22e..0a1e011a 100644 --- a/webUI/react/src/App.tsx +++ b/webUI/react/src/App.tsx @@ -4,14 +4,13 @@ import React, { useState } from 'react'; import { - BrowserRouter as Router, Route, Switch, + BrowserRouter as Router, Redirect, Route, Switch, } from 'react-router-dom'; import { Container } from '@material-ui/core'; import CssBaseline from '@material-ui/core/CssBaseline'; import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles'; import NavBar from './components/NavBar'; -import Home from './screens/Home'; import Sources from './screens/Sources'; import Extensions from './screens/Extensions'; import SourceMangas from './screens/SourceMangas'; @@ -94,9 +93,13 @@ export default function App() { - - - + ( + + )} + /> diff --git a/webUI/react/src/screens/Home.tsx b/webUI/react/src/screens/Home.tsx deleted file mode 100644 index 6a14a418..00000000 --- a/webUI/react/src/screens/Home.tsx +++ /dev/null @@ -1,13 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ - -import React from 'react'; - -export default function Home() { - return ( -

- Hint: Click Tn The Top Left Menu Button -

- ); -}