Archived
testing projectnotes functionality
This commit is contained in:
@@ -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,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,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 = () => {
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
@@ -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