correct naming of Generalinfos and added tests
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
import React from "react";
|
||||
import style from "./SideBar.module.css"
|
||||
import StaticInfos from "../../GlobalInfos";
|
||||
import GlobalInfos from "../../GlobalInfos";
|
||||
|
||||
class SideBar extends React.Component {
|
||||
render() {
|
||||
const themeStyle = StaticInfos.getThemeStyle();
|
||||
const themeStyle = GlobalInfos.getThemeStyle();
|
||||
return (<div className={style.sideinfo + ' '+ themeStyle.secbackground}>
|
||||
{this.props.children}
|
||||
</div>);
|
||||
@ -13,7 +13,7 @@ class SideBar extends React.Component {
|
||||
|
||||
export class SideBarTitle extends React.Component {
|
||||
render() {
|
||||
const themeStyle = StaticInfos.getThemeStyle();
|
||||
const themeStyle = GlobalInfos.getThemeStyle();
|
||||
return (
|
||||
<div className={style.sidebartitle + ' '+ themeStyle.subtextcolor}>{this.props.children}</div>
|
||||
);
|
||||
@ -22,7 +22,7 @@ export class SideBarTitle extends React.Component {
|
||||
|
||||
export class SideBarItem extends React.Component {
|
||||
render() {
|
||||
const themeStyle = StaticInfos.getThemeStyle();
|
||||
const themeStyle = GlobalInfos.getThemeStyle();
|
||||
return (
|
||||
<div className={style.sidebarinfo + ' ' + themeStyle.thirdbackground + ' ' + themeStyle.lighttextcolor}>{this.props.children}</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user