correct naming of Generalinfos and added tests
This commit is contained in:
@ -2,7 +2,7 @@ import React from "react";
|
||||
import style from "./Preview.module.css";
|
||||
import Player from "../../pages/Player/Player";
|
||||
import {Spinner} from "react-bootstrap";
|
||||
import StaticInfos from "../../GlobalInfos";
|
||||
import GlobalInfos from "../../GlobalInfos";
|
||||
|
||||
class Preview extends React.Component {
|
||||
constructor(props, context) {
|
||||
@ -34,7 +34,7 @@ class Preview extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
const themeStyle = StaticInfos.getThemeStyle();
|
||||
const themeStyle = GlobalInfos.getThemeStyle();
|
||||
return (
|
||||
<div className={style.videopreview + ' ' + themeStyle.secbackground + ' '+ themeStyle.preview} onClick={() => this.itemClick()}>
|
||||
<div className={style.previewtitle + ' '+ themeStyle.lighttextcolor}>{this.state.name}</div>
|
||||
@ -65,7 +65,7 @@ class Preview extends React.Component {
|
||||
|
||||
export class TagPreview extends React.Component {
|
||||
render() {
|
||||
const themeStyle = StaticInfos.getThemeStyle();
|
||||
const themeStyle = GlobalInfos.getThemeStyle();
|
||||
return (
|
||||
<div className={style.videopreview + ' ' + style.tagpreview + ' ' + themeStyle.secbackground + ' '+ themeStyle.preview} onClick={() => this.itemClick()}>
|
||||
<div className={style.tagpreviewtitle + ' ' + themeStyle.lighttextcolor}>
|
||||
|
@ -42,7 +42,6 @@
|
||||
|
||||
.videopreview:hover {
|
||||
opacity: 1;
|
||||
/*box-shadow: rgba(2, 12, 27, 0.7) 0 0 0 5px;*/
|
||||
transition: all 300ms;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user