summaryrefslogtreecommitdiff
path: root/frontend/src/scenes/Lobby/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/scenes/Lobby/index.js')
-rw-r--r--frontend/src/scenes/Lobby/index.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/frontend/src/scenes/Lobby/index.js b/frontend/src/scenes/Lobby/index.js
index 57ad5c7f..88021fbe 100644
--- a/frontend/src/scenes/Lobby/index.js
+++ b/frontend/src/scenes/Lobby/index.js
@@ -3,10 +3,17 @@ import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Button } from 'rebass';
import { PlayerList } from '../../components/playerList';
+import type { Game } from '../../models/games';
+import type { Player } from '../../models/players';
import { actions, getCurrentGame } from '../../redux/games';
import { getPlayers } from '../../redux/players';
-class LobbyPresenter extends Component {
+export type LobbyProps = {
+ currentGame: Game,
+ players: List<Player>,
+}
+
+class LobbyPresenter extends Component<LobbyProps> {
getTitle() {
if (this.props.currentGame) {
return this.props.currentGame.name + ' — Lobby';
bgstack15