added Random page for random videos
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user