Lukas Heiligenbrunner
777cc2a712
no redirect on tagclick on homepage no multiple add of same tag possible
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
import React from 'react';
|
|
import style from './SideBar.module.css';
|
|
import GlobalInfos from '../../GlobalInfos';
|
|
|
|
/**
|
|
* component for sidebar-info
|
|
*/
|
|
class SideBar extends React.Component {
|
|
render() {
|
|
const themeStyle = GlobalInfos.getThemeStyle();
|
|
return (<div className={style.sideinfo + ' ' + themeStyle.secbackground}>
|
|
{this.props.children}
|
|
</div>);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* The title of the sidebar
|
|
*/
|
|
export class SideBarTitle extends React.Component {
|
|
render() {
|
|
const themeStyle = GlobalInfos.getThemeStyle();
|
|
return (
|
|
<div className={style.sidebartitle + ' ' + themeStyle.subtextcolor}>{this.props.children}</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* An item of the sidebar
|
|
*/
|
|
export class SideBarItem extends React.Component {
|
|
render() {
|
|
const themeStyle = GlobalInfos.getThemeStyle();
|
|
return (
|
|
<div
|
|
className={style.sidebarinfo + ' ' + themeStyle.thirdbackground + ' ' + themeStyle.lighttextcolor}>{this.props.children}</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default SideBar;
|