2022-02-18 21:11:23 +01:00
|
|
|
import { Route, Switch } from "react-router-dom";
|
|
|
|
import { WatchedContextProvider } from "state/watched/context";
|
|
|
|
import "./index.css";
|
|
|
|
import { MovieView } from "./views/MovieView";
|
|
|
|
import { SearchView } from "./views/SearchView";
|
|
|
|
import { SeriesView } from "./views/SeriesView";
|
2022-02-06 20:56:48 +01:00
|
|
|
|
|
|
|
function App() {
|
|
|
|
return (
|
2022-02-18 21:11:23 +01:00
|
|
|
<WatchedContextProvider>
|
|
|
|
<Switch>
|
|
|
|
<Route exact path="/" component={SearchView} />
|
2022-02-20 16:45:46 +01:00
|
|
|
<Route exact path="/media/movie/:media" component={MovieView} />
|
|
|
|
<Route exact path="/media/series/:media" component={SeriesView} />
|
2022-02-18 21:11:23 +01:00
|
|
|
</Switch>
|
|
|
|
</WatchedContextProvider>
|
2022-02-06 20:56:48 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|