Quellcode durchsuchen

making Game a single file component again

Kirk Trombley vor 5 Jahren
Ursprung
Commit
de16dd535a
2 geänderte Dateien mit 8 neuen und 9 gelöschten Zeilen
  1. 8 8
      client/src/components/Game.jsx
  2. 0 1
      client/src/components/Game/index.js

+ 8 - 8
client/src/components/Game/Game.jsx → client/src/components/Game.jsx

@@ -6,14 +6,14 @@ import {
   POST_ROUND,
   POST_GAME,
   ERROR,
-} from "../../domain/GameState";
-import PreGame from '../screens/PreGame';
-import PreRound from '../screens/PreRound';
-import GamePanel from "../screens/GamePanel";
-import RoundSummary from '../screens/RoundSummary';
-import PlayerScores from "../screens/PlayerScores";
-import { gameIdStore, gameStateStore } from "../../domain/store";
-import useObservable from "../../hooks/useObservable";
+} from "../domain/GameState";
+import PreGame from './screens/PreGame';
+import PreRound from './screens/PreRound';
+import GamePanel from "./screens/GamePanel";
+import RoundSummary from './screens/RoundSummary';
+import PlayerScores from "./screens/PlayerScores";
+import { gameIdStore, gameStateStore } from "../domain/store";
+import useObservable from "../hooks/useObservable";
 import { useEffect } from "react";
 
 const extractAndRemoveSearchParam = param => {

+ 0 - 1
client/src/components/Game/index.js

@@ -1 +0,0 @@
-export { default } from "./Game";