mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-24 18:21:53 +01:00
remove test code
This commit is contained in:
parent
c7ef58481b
commit
b568b5dfed
15
src/App.tsx
15
src/App.tsx
@ -1,5 +1,3 @@
|
||||
import { SearchBarInput } from "components/SearchBar";
|
||||
import { useSearchQuery } from "hooks/useSearchQuery";
|
||||
import { MWMediaType } from "providers";
|
||||
import { Redirect, Route, Switch } from "react-router-dom";
|
||||
import { BookmarkContextProvider } from "state/bookmark";
|
||||
@ -9,16 +7,6 @@ import "./index.css";
|
||||
import { MediaView } from "./views/MediaView";
|
||||
import { SearchView } from "./views/SearchView";
|
||||
|
||||
function TestInput() {
|
||||
const [q1, c1, b1] = useSearchQuery();
|
||||
return (
|
||||
<div>
|
||||
<p>Normal:</p>
|
||||
<SearchBarInput onChange={c1} value={q1} onUnFocus={b1} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<WatchedContextProvider>
|
||||
@ -30,9 +18,6 @@ function App() {
|
||||
<Route exact path="/media/movie/:media" component={MediaView} />
|
||||
<Route exact path="/media/series/:media" component={MediaView} />
|
||||
<Route exact path="/search/:type/:query?" component={SearchView} />
|
||||
<Route exact path="/test/:type/:query?">
|
||||
<TestInput />
|
||||
</Route>
|
||||
<Route path="*" component={NotFoundPage} />
|
||||
</Switch>
|
||||
</BookmarkContextProvider>
|
||||
|
Loading…
Reference in New Issue
Block a user