|
|
|
@ -1,5 +1,3 @@
@@ -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";
@@ -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() {
@@ -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> |
|
|
|
|