diff options
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/src/components/PlayerInfo.jsx | 2 | ||||
-rw-r--r-- | frontend/src/components/PlayerList.jsx | 2 | ||||
-rw-r--r-- | frontend/src/components/game-browser/GameBrowser.jsx | 2 | ||||
-rw-r--r-- | frontend/src/components/game-browser/GameStatus.jsx | 2 | ||||
-rw-r--r-- | frontend/src/components/game-browser/PlayerCount.jsx | 2 | ||||
-rw-r--r-- | frontend/src/components/home/ChooseNameForm.jsx | 2 | ||||
-rw-r--r-- | frontend/src/components/shared/IconButton.jsx | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/frontend/src/components/PlayerInfo.jsx b/frontend/src/components/PlayerInfo.jsx index 42d3142a..afe03055 100644 --- a/frontend/src/components/PlayerInfo.jsx +++ b/frontend/src/components/PlayerInfo.jsx @@ -5,7 +5,7 @@ import { connect } from 'react-redux'; import type { Player } from '../models/players'; import { getCurrentPlayer } from '../redux/players'; -export type PlayerInfoProps = { +type PlayerInfoProps = { player: ?Player, } diff --git a/frontend/src/components/PlayerList.jsx b/frontend/src/components/PlayerList.jsx index 8584502b..64377476 100644 --- a/frontend/src/components/PlayerList.jsx +++ b/frontend/src/components/PlayerList.jsx @@ -5,7 +5,7 @@ import React from 'react'; import { Flex } from 'reflexbox'; import { Player } from '../models/players'; -export type PlayerListProps = { +type PlayerListProps = { players: List<Player>; }; diff --git a/frontend/src/components/game-browser/GameBrowser.jsx b/frontend/src/components/game-browser/GameBrowser.jsx index 84abd978..3455f429 100644 --- a/frontend/src/components/game-browser/GameBrowser.jsx +++ b/frontend/src/components/game-browser/GameBrowser.jsx @@ -7,7 +7,7 @@ import { GameList } from './GameList'; import { PlayerInfo } from '../PlayerInfo'; import { actions } from '../../redux/games'; -export type GameBrowserProps = { +type GameBrowserProps = { createGame: (gameName: string) => void, } diff --git a/frontend/src/components/game-browser/GameStatus.jsx b/frontend/src/components/game-browser/GameStatus.jsx index 4168f0a5..749d3cfa 100644 --- a/frontend/src/components/game-browser/GameStatus.jsx +++ b/frontend/src/components/game-browser/GameStatus.jsx @@ -3,7 +3,7 @@ import { Tag } from '@blueprintjs/core'; import * as React from 'react'; import type { GameState } from '../../models/games'; -export type GameStatusProps = { +type GameStatusProps = { state: GameState, } diff --git a/frontend/src/components/game-browser/PlayerCount.jsx b/frontend/src/components/game-browser/PlayerCount.jsx index ea2161a4..aa9d1d2f 100644 --- a/frontend/src/components/game-browser/PlayerCount.jsx +++ b/frontend/src/components/game-browser/PlayerCount.jsx @@ -3,7 +3,7 @@ import { Icon } from '@blueprintjs/core'; import * as React from 'react'; import './PlayerCount.css'; -export type PlayerCountProps = { +type PlayerCountProps = { nbPlayers: number, } diff --git a/frontend/src/components/home/ChooseNameForm.jsx b/frontend/src/components/home/ChooseNameForm.jsx index 386f249b..c33dce2a 100644 --- a/frontend/src/components/home/ChooseNameForm.jsx +++ b/frontend/src/components/home/ChooseNameForm.jsx @@ -5,7 +5,7 @@ import { connect } from 'react-redux'; import { actions } from '../../redux/players'; import { IconButton } from '../shared/IconButton'; -export type ChooseNameFormPresenterProps = { +type ChooseNameFormPresenterProps = { chooseUsername: (username: string) => void, } diff --git a/frontend/src/components/shared/IconButton.jsx b/frontend/src/components/shared/IconButton.jsx index c417ae57..3031720a 100644 --- a/frontend/src/components/shared/IconButton.jsx +++ b/frontend/src/components/shared/IconButton.jsx @@ -3,7 +3,7 @@ import { Button, Icon } from '@blueprintjs/core'; import type { IconName } from '@blueprintjs/icons'; import * as React from 'react'; -export type IconButtonProps = { +type IconButtonProps = { icon: IconName, title?: string | false | null, [string]: any, |