From f9e1ae1b8da0e6cbcb9ed731dbc45549300ebbe5 Mon Sep 17 00:00:00 2001 From: bytesparallel Date: Fri, 11 Feb 2022 13:51:16 -0600 Subject: [PATCH] testing projectnotes functionality --- .gitignore | 2 ++ src/components/ApplicationViews.js | 2 ++ src/components/game/EventForm.js | 1 - src/components/game/EventList.js | 16 ++++++++++++++-- src/components/game/UpdateEvent.js | 9 +++++++++ src/components/game/UpdateGame.js | 0 6 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 src/components/game/UpdateEvent.js create mode 100644 src/components/game/UpdateGame.js diff --git a/.gitignore b/.gitignore index 4d29575..74fdfbe 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ npm-debug.log* yarn-debug.log* yarn-error.log* + +projectnotes.md* diff --git a/src/components/ApplicationViews.js b/src/components/ApplicationViews.js index b16872c..30114df 100644 --- a/src/components/ApplicationViews.js +++ b/src/components/ApplicationViews.js @@ -2,6 +2,8 @@ import React from "react" import { Route } from "react-router-dom" import { EventList } from "./game/EventList.js" import { GameList } from "./game/GameList.js" +import { GameForm } from "./game/GameForm.js" +import { EventForm } from "./game/EventForm.js" export const ApplicationViews = () => { return <>
{ diff --git a/src/components/game/EventList.js b/src/components/game/EventList.js index c65ad54..18b3667 100644 --- a/src/components/game/EventList.js +++ b/src/components/game/EventList.js @@ -8,8 +8,20 @@ export const EventList = (props) => { getEvents().then(data => setEvents(data)) }, []) - return ( -
+return ( +
+ { events.map(event => { return
diff --git a/src/components/game/UpdateEvent.js b/src/components/game/UpdateEvent.js new file mode 100644 index 0000000..4520dd1 --- /dev/null +++ b/src/components/game/UpdateEvent.js @@ -0,0 +1,9 @@ +import react, { useState, useEffect, useHistory} from "react"; + +export const UpdateEvent = () => { + const [intialvalue, setinitialvalue ] = useState("") +} + +const eventupdateform = () => { + +} \ No newline at end of file diff --git a/src/components/game/UpdateGame.js b/src/components/game/UpdateGame.js new file mode 100644 index 0000000..e69de29