Adding a route and component to list your competitions
This commit is contained in:
1 parent
323835834c
commit
7c43c402e2
2 files changed
+11
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import React from 'react'
|
||||
|
||||
class Index extends React.Component {
|
||||
render () {
|
||||
return <p>Here will come a list the competitions you applied for</p>
|
||||
}
|
||||
}
|
||||
|
||||
export default Index
|
||||
@@ -8,6 +8,7 @@ import { getItem } from './utils/local-storage'
|
||||
|
||||
import TopBar from './Components/TopBar'
|
||||
import Search from './Components/Search'
|
||||
import Events from './Components/Events'
|
||||
import HostedEvents from './Components/HostedEvents'
|
||||
import EditEvent from './Components/Event/Edit'
|
||||
|
||||
@@ -42,6 +43,7 @@ class App extends Component {
|
||||
{loggedIn}
|
||||
<Switch>
|
||||
<Route exact path='/' component={Search} />
|
||||
<Route path='/events' component={Events} />
|
||||
<Route path='/event/:slug/edit' component={EditEvent} />
|
||||
<Route path='/event/:slug' component={EditEvent} />
|
||||
<Route path='/hosted-events' component={HostedEvents} />
|
||||
|
||||
Reference in new issue
Block a user