summaryrefslogtreecommitdiff
path: root/frontend/src/components
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2018-06-10 15:35:55 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2018-06-10 15:35:55 +0200
commit16af539fc6fe6956b1b9426f97ea33c4683dbab8 (patch)
tree2e485e4fba7f0ebd9d744983bccee66faec13e23 /frontend/src/components
parentAdd IconButton component to work around Icon title issue (diff)
downloadseven-wonders-16af539fc6fe6956b1b9426f97ea33c4683dbab8.tar.gz
seven-wonders-16af539fc6fe6956b1b9426f97ea33c4683dbab8.tar.bz2
seven-wonders-16af539fc6fe6956b1b9426f97ea33c4683dbab8.zip
Remove unnecessary prop types exports
Diffstat (limited to 'frontend/src/components')
-rw-r--r--frontend/src/components/PlayerInfo.jsx2
-rw-r--r--frontend/src/components/PlayerList.jsx2
-rw-r--r--frontend/src/components/game-browser/GameBrowser.jsx2
-rw-r--r--frontend/src/components/game-browser/GameStatus.jsx2
-rw-r--r--frontend/src/components/game-browser/PlayerCount.jsx2
-rw-r--r--frontend/src/components/home/ChooseNameForm.jsx2
-rw-r--r--frontend/src/components/shared/IconButton.jsx2
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,
bgstack15