import React from 'react'; import SideBar, {SideBarTitle} from '../../elements/SideBar/SideBar'; import Tag from '../../elements/Tag/Tag'; import NewTagPopup from '../../elements/Popups/NewTagPopup/NewTagPopup'; import PageTitle, {Line} from '../../elements/PageTitle/PageTitle'; import {Route, Switch} from 'react-router-dom'; import {DefaultTags} from '../../types/GeneralTypes'; import {CategoryViewWR} from './CategoryView'; import TagView from './TagView'; interface CategoryPageState { popupvisible: boolean; subtitle: string; } /** * Component for Category Page * Contains a Tag Overview and loads specific Tag videos in VideoContainer */ class CategoryPage extends React.Component<{}, CategoryPageState> { constructor(props: {}) { super(props); this.state = { popupvisible: false, subtitle: '' }; this.setSubTitle = this.setSubTitle.bind(this); } render(): JSX.Element { return ( <> Default Tags: {this.state.popupvisible ? { this.setState({popupvisible: false}); // this.loadTags(); }}/> : null } ); } /** * set the subtitle of this page * @param subtitle string as subtitle */ setSubTitle(subtitle: string): void { this.setState({subtitle: subtitle}); } } export default CategoryPage;