added Random page for random videos

This commit is contained in:
2020-06-01 20:46:28 +02:00
parent 8456a4aec4
commit 060348be9e
7 changed files with 105 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
import React from "react";
import HomePage from "./HomePage";
import RandomPage from "./RandomPage";
class MainBody extends React.Component {
constructor(props) {
@@ -11,7 +12,9 @@ class MainBody extends React.Component {
let page;
if (this.props.page === "default") {
page = <HomePage viewbinding={this.props.viewbinding}/>;
} else if (this.props.page === "video") {
} else if (this.props.page === "random"){
page = <RandomPage viewbinding={this.props.viewbinding}/>;
}else if (this.props.page === "video") {
// show videoelement if neccessary
page = this.props.videoelement;
} else {