Verified Commit ea5faee9 authored by Mehdi Baaboura's avatar Mehdi Baaboura
Browse files

Reload page if not logged in and rendering React

parent 862b5922
......@@ -20,6 +20,10 @@
import React, {Component} from "react";
export default class Home extends Component<any, any> {
componentDidMount() {
window.location.href = "/";
}
render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | string | number | {} | React.ReactNodeArray | React.ReactPortal | boolean | null | undefined {
// TODO
return <div>Please log in.</div>;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment