Archived
completed ch7 front-end work
This commit is contained in:
@@ -1,13 +1,19 @@
|
||||
import React from "react"
|
||||
import { Route } from "react-router-dom"
|
||||
|
||||
import { EventList } from "./game/EventList.js"
|
||||
import { GameList } from "./game/GameList.js"
|
||||
export const ApplicationViews = () => {
|
||||
return <>
|
||||
<main style={{
|
||||
margin: "5rem 2rem",
|
||||
backgroundColor: "lightgoldenrodyellow"
|
||||
lineHeight: "1.75rem"
|
||||
}}>
|
||||
Application views
|
||||
<Route exact path="/">
|
||||
<GameList />
|
||||
</Route>
|
||||
<Route exact path="/">
|
||||
<EventList />
|
||||
</Route>
|
||||
</main>
|
||||
</>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user