2020-12-29 19:39:30 +00:00
|
|
|
import React from 'react';
|
|
|
|
import {Route, Switch} from 'react-router-dom';
|
|
|
|
import {CategoryViewWR} from './CategoryView';
|
|
|
|
import TagView from './TagView';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Component for Category Page
|
|
|
|
* Contains a Tag Overview and loads specific Tag videos in VideoContainer
|
|
|
|
*/
|
2021-01-26 19:14:57 +00:00
|
|
|
class CategoryPage extends React.Component {
|
2020-12-29 19:39:30 +00:00
|
|
|
render(): JSX.Element {
|
|
|
|
return (
|
2021-01-26 19:14:57 +00:00
|
|
|
<Switch>
|
|
|
|
<Route path='/categories/:id'>
|
|
|
|
<CategoryViewWR/>
|
|
|
|
</Route>
|
|
|
|
<Route path='/categories'>
|
|
|
|
<TagView/>
|
|
|
|
</Route>
|
|
|
|
</Switch>
|
2020-12-29 19:39:30 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default CategoryPage;
|