Archived
testing projectnotes functionality
This commit is contained in:
@@ -21,3 +21,5 @@
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
projectnotes.md*
|
||||
|
||||
@@ -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 <>
|
||||
<main style={{
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import React, { useState, useEffect } from "react"
|
||||
import { useHistory } from 'react-router-dom'
|
||||
import { createEvent } from './EventManager'
|
||||
|
||||
|
||||
export const EventForm = () => {
|
||||
|
||||
@@ -8,8 +8,20 @@ export const EventList = (props) => {
|
||||
getEvents().then(data => setEvents(data))
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<article className="events">
|
||||
return (
|
||||
<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 => {
|
||||
return <section key={`event--${event.id}`} className="event">
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import react, { useState, useEffect, useHistory} from "react";
|
||||
|
||||
export const UpdateEvent = () => {
|
||||
const [intialvalue, setinitialvalue ] = useState("")
|
||||
}
|
||||
|
||||
const eventupdateform = () => {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user