You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
453 B
22 lines
453 B
4 years ago
|
import React, { FunctionComponent } from "react";
|
||
|
import { Route, Switch } from "react-router-dom";
|
||
|
import Series from ".";
|
||
|
import Episodes from "./Episodes";
|
||
|
|
||
|
interface Props {}
|
||
|
|
||
|
const Router: FunctionComponent<Props> = () => {
|
||
|
return (
|
||
|
<Switch>
|
||
|
<Route exact path="/series">
|
||
|
<Series></Series>
|
||
|
</Route>
|
||
|
<Route path="/series/:id">
|
||
|
<Episodes></Episodes>
|
||
|
</Route>
|
||
|
</Switch>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default Router;
|