Browse Source

Renamed PlayerScores to GameSummary to be more clear

Kirk Trombley 5 năm trước cách đây
mục cha
commit
fd04a2cbaa

+ 2 - 2
client/src/App.js

@@ -2,9 +2,9 @@ import React, { useState } from 'react';
 import { CSSTransition } from 'react-transition-group';
 import styles from './App.module.css';
 import GamePanel from './components/screens/GamePanel';
+import GameSummary from './components/screens/GameSummary';
 import HomePage from './components/screens/HomePage';
 import Lobby from './components/screens/Lobby';
-import PlayerScores from './components/screens/PlayerScores';
 import RoundSummary from './components/screens/RoundSummary';
 import ApiInfo from './components/util/ApiInfo';
 import { ERROR, IN_ROUND, POST_GAME, POST_ROUND, PRE_GAME, PRE_ROUND } from './domain/GameState';
@@ -85,7 +85,7 @@ export default () => {
           <RoundSummary />
         </State>
         <State show={gameState === POST_GAME} setTransitioning={setTransitioning}>
-          <PlayerScores />
+          <GameSummary />
         </State>
         <State show={gameState === ERROR}>
           <p>Application encountered unrecoverable error, please refresh the page.</p>

+ 1 - 1
client/src/components/screens/PlayerScores/PlayerScores.jsx → client/src/components/screens/GameSummary/GameSummary.jsx

@@ -4,7 +4,7 @@ import { useGameCoords, useLinkedGame, usePlayers } from '../../../hooks/useGame
 import ClickToCopy from '../../util/ClickToCopy';
 import Loading from '../../util/Loading';
 import LinkedGame from './LinkedGame';
-import styles from './PlayerScores.module.css';
+import styles from './GameSummary.module.css';
 import ScoreBoard from './ScoreBoard';
 import SummaryMap from './SummaryMap';
 

+ 0 - 0
client/src/components/screens/PlayerScores/PlayerScores.module.css → client/src/components/screens/GameSummary/GameSummary.module.css


+ 1 - 1
client/src/components/screens/PlayerScores/LinkedGame.jsx → client/src/components/screens/GameSummary/LinkedGame.jsx

@@ -2,7 +2,7 @@ import React from 'react';
 import { linkGame } from '../../../domain/apiMethods';
 import { dispatch } from '../../../domain/gameStore';
 import GameCreationForm from '../../util/GameCreationForm';
-import styles from './PlayerScores.module.css';
+import styles from './GameSummary.module.css';
 
 export default React.memo(({ linkedGame, gameId }) => (
   <div className={styles.linked}>

+ 0 - 0
client/src/components/screens/PlayerScores/ScoreBoard/ScoreBoard.jsx → client/src/components/screens/GameSummary/ScoreBoard/ScoreBoard.jsx


+ 0 - 0
client/src/components/screens/PlayerScores/ScoreBoard/ScoreBoard.module.css → client/src/components/screens/GameSummary/ScoreBoard/ScoreBoard.module.css


+ 0 - 0
client/src/components/screens/PlayerScores/ScoreBoard/index.js → client/src/components/screens/GameSummary/ScoreBoard/index.js


+ 0 - 0
client/src/components/screens/PlayerScores/SummaryMap/SummaryMap.jsx → client/src/components/screens/GameSummary/SummaryMap/SummaryMap.jsx


+ 0 - 0
client/src/components/screens/PlayerScores/SummaryMap/SummaryMap.module.css → client/src/components/screens/GameSummary/SummaryMap/SummaryMap.module.css


+ 0 - 0
client/src/components/screens/PlayerScores/SummaryMap/index.js → client/src/components/screens/GameSummary/SummaryMap/index.js


+ 1 - 0
client/src/components/screens/GameSummary/index.js

@@ -0,0 +1 @@
+export { default } from './GameSummary';

+ 0 - 1
client/src/components/screens/PlayerScores/index.js

@@ -1 +0,0 @@
-export { default } from './PlayerScores';