Przeglądaj źródła

Turn GameCreationForm into a module

Kirk Trombley 5 lat temu
rodzic
commit
7f6bde4dca

+ 0 - 0
client/src/components/util/Dropdown.jsx → client/src/components/util/GameCreationForm/Dropdown.jsx


+ 4 - 3
client/src/components/util/GameCreationForm.jsx → client/src/components/util/GameCreationForm/GameCreationForm.jsx

@@ -1,10 +1,11 @@
 import React, { useState } from "react";
 import styled from "styled-components";
 import ms from "pretty-ms";
-import Loading from "./Loading";
-import { createGame } from "../../domain/apiMethods";
+import Loading from "../Loading";
+import { createGame } from "../../../domain/apiMethods";
 import Dropdown from "./Dropdown";
-import { MAP_CRUNCH, RANDOM_STREET_VIEW, URBAN } from "../../domain/genMethods";
+import { MAP_CRUNCH, RANDOM_STREET_VIEW, URBAN } from "../../../domain/genMethods";
+import styles from './GameCreationForm.module.css'
 
 const Container = styled.div`
   display: flex;

+ 0 - 0
client/src/components/util/GameCreationForm/GameCreationForm.module.css


+ 1 - 0
client/src/components/util/GameCreationForm/index.jsx

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