mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2025-01-12 00:39:07 +01:00
redirect / to library
This commit is contained in:
parent
2bbebe4c30
commit
9a282c3bf4
@ -4,14 +4,13 @@
|
|||||||
|
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import {
|
import {
|
||||||
BrowserRouter as Router, Route, Switch,
|
BrowserRouter as Router, Redirect, Route, Switch,
|
||||||
} from 'react-router-dom';
|
} from 'react-router-dom';
|
||||||
import { Container } from '@material-ui/core';
|
import { Container } from '@material-ui/core';
|
||||||
import CssBaseline from '@material-ui/core/CssBaseline';
|
import CssBaseline from '@material-ui/core/CssBaseline';
|
||||||
import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles';
|
import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles';
|
||||||
|
|
||||||
import NavBar from './components/NavBar';
|
import NavBar from './components/NavBar';
|
||||||
import Home from './screens/Home';
|
|
||||||
import Sources from './screens/Sources';
|
import Sources from './screens/Sources';
|
||||||
import Extensions from './screens/Extensions';
|
import Extensions from './screens/Extensions';
|
||||||
import SourceMangas from './screens/SourceMangas';
|
import SourceMangas from './screens/SourceMangas';
|
||||||
@ -94,9 +93,13 @@ export default function App() {
|
|||||||
<Route path="/settings">
|
<Route path="/settings">
|
||||||
<Settings />
|
<Settings />
|
||||||
</Route>
|
</Route>
|
||||||
<Route path="/">
|
<Route
|
||||||
<Home />
|
exact
|
||||||
</Route>
|
path="/"
|
||||||
|
render={() => (
|
||||||
|
<Redirect to="/library" />
|
||||||
|
)}
|
||||||
|
/>
|
||||||
</Switch>
|
</Switch>
|
||||||
</Container>
|
</Container>
|
||||||
</NavBarTitle.Provider>
|
</NavBarTitle.Provider>
|
||||||
|
@ -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 (
|
|
||||||
<h1>
|
|
||||||
Hint: Click Tn The Top Left Menu Button
|
|
||||||
</h1>
|
|
||||||
);
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user