remove test code

This commit is contained in:
Jelle van Snik 2022-05-03 21:06:56 +02:00
parent c7ef58481b
commit b568b5dfed

View File

@ -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>