testing projectnotes functionality

This commit is contained in:
2022-02-11 13:51:16 -06:00
parent c6ca17650d
commit f9e1ae1b8d
6 changed files with 27 additions and 3 deletions
+2
View File
@@ -21,3 +21,5 @@
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
projectnotes.md*
+2
View File
@@ -2,6 +2,8 @@ import React from "react"
import { Route } from "react-router-dom" import { Route } from "react-router-dom"
import { EventList } from "./game/EventList.js" import { EventList } from "./game/EventList.js"
import { GameList } from "./game/GameList.js" import { GameList } from "./game/GameList.js"
import { GameForm } from "./game/GameForm.js"
import { EventForm } from "./game/EventForm.js"
export const ApplicationViews = () => { export const ApplicationViews = () => {
return <> return <>
<main style={{ <main style={{
-1
View File
@@ -1,6 +1,5 @@
import React, { useState, useEffect } from "react" import React, { useState, useEffect } from "react"
import { useHistory } from 'react-router-dom' import { useHistory } from 'react-router-dom'
import { createEvent } from './EventManager'
export const EventForm = () => { export const EventForm = () => {
+12
View File
@@ -10,6 +10,18 @@ export const EventList = (props) => {
return ( return (
<article className="events"> <article className="events">
<button
className="btn btn-2 btn-sep icon-create"
onClick={
() => {
history.push(
{ pathname: "/events/new" }
)
}
}
>Register New Event
</button>
{ {
events.map(event => { events.map(event => {
return <section key={`event--${event.id}`} className="event"> return <section key={`event--${event.id}`} className="event">
+9
View File
@@ -0,0 +1,9 @@
import react, { useState, useEffect, useHistory} from "react";
export const UpdateEvent = () => {
const [intialvalue, setinitialvalue ] = useState("")
}
const eventupdateform = () => {
}
View File