Browse Source

Fix styling

Kirk Trombley 3 years ago
parent
commit
907ee2c23f
1 changed files with 21 additions and 24 deletions
  1. 21 24
      client/src/components/util/GameCreationForm/GameCreationForm.jsx

+ 21 - 24
client/src/components/util/GameCreationForm/GameCreationForm.jsx

@@ -95,30 +95,27 @@ const GameCreationForm = ({ afterCreate, lastSettings = null }) => {
 
   const [presetOpen, setPresetOpen] = useState(false);
   const [selectedPreset, setSelectedPreset] = useState(DEFAULTS);
-  const setPreset = useCallback(
-    preset => {
-      const {
-        timer: newTimer,
-        rounds: newRounds,
-        countryLock: newCountryLock,
-        generationMethod: newGenMethod,
-        gameMode: newGameMode,
-        clockMode: newClockMode,
-        scoreMethod: newScoreMethod,
-        roundPointCap: newRoundPointCap,
-      } = preset;
-      setTimer(newTimer);
-      setRounds(newRounds);
-      setCountryLock(newCountryLock);
-      setGenMethod(newGenMethod);
-      setGameMode(newGameMode);
-      setClockMode(newClockMode);
-      setScoreMethod(newScoreMethod);
-      setRoundPointCap(newRoundPointCap);
-      setSelectedPreset(preset);
-    },
-    []
-  );
+  const setPreset = useCallback(preset => {
+    const {
+      timer: newTimer,
+      rounds: newRounds,
+      countryLock: newCountryLock,
+      generationMethod: newGenMethod,
+      gameMode: newGameMode,
+      clockMode: newClockMode,
+      scoreMethod: newScoreMethod,
+      roundPointCap: newRoundPointCap,
+    } = preset;
+    setTimer(newTimer);
+    setRounds(newRounds);
+    setCountryLock(newCountryLock);
+    setGenMethod(newGenMethod);
+    setGameMode(newGameMode);
+    setClockMode(newClockMode);
+    setScoreMethod(newScoreMethod);
+    setRoundPointCap(newRoundPointCap);
+    setSelectedPreset(preset);
+  }, []);
 
   if (loading || countryLookup === null) {
     return <Loading />;