Update
This commit is contained in:
35
src/web/Startup.tsx
Normal file
35
src/web/Startup.tsx
Normal file
@ -0,0 +1,35 @@
|
||||
import {Component} from "react";
|
||||
import GameSetup from "./GameSetup";
|
||||
|
||||
|
||||
interface StartupState {
|
||||
started: boolean,
|
||||
}
|
||||
|
||||
export default class Startup extends Component<{}, StartupState> {
|
||||
constructor(props: {}) {
|
||||
super(props);
|
||||
this.state = {started: false};
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
|
||||
}
|
||||
|
||||
render() {
|
||||
if(!this.state.started)
|
||||
return <div className="startup">
|
||||
<h1>Willkommen!</h1>
|
||||
<p>Smart Monopoly wird gestartet...</p>
|
||||
{!this.state.started ? <span className="loader"></span> : null}
|
||||
</div>
|
||||
else
|
||||
return <h1>Willkommen!</h1>
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user