a bit of renaming for better paths
This commit is contained in:
1 parent
2387af9276
commit
4420b63db0
6 files changed
+4
-4
No files matched your search
+1
-1
@@ -73,7 +73,7 @@ class Event extends React.Component {
|
||||
color='primary'
|
||||
size='small'
|
||||
component={Link}
|
||||
to={'/hosted-events/' + designator}
|
||||
to={`/event/${designator}/edit`}
|
||||
>
|
||||
Edit
|
||||
</Button>
|
||||
File renamed without changes.
File renamed without changes.
+1
-1
@@ -25,7 +25,7 @@ class HostedEvent extends React.Component {
|
||||
}
|
||||
|
||||
handleNewEvent = (event) => {
|
||||
this.props.history.push(`/${event.designator}`)
|
||||
this.props.history.push(`/event/${event.designator}/edit`)
|
||||
};
|
||||
|
||||
render () {
|
||||
File renamed without changes.
+2
-2
@@ -8,7 +8,7 @@ import { getItem } from './utils/local-storage'
|
||||
|
||||
import TopBar from './Components/TopBar'
|
||||
import Search from './Components/Search'
|
||||
import HostedEvent from './Components/HostedEvent'
|
||||
import HostedEvents from './Components/HostedEvents'
|
||||
|
||||
class App extends Component {
|
||||
constructor (props) {
|
||||
@@ -41,7 +41,7 @@ class App extends Component {
|
||||
{loggedIn}
|
||||
<Switch>
|
||||
<Route exact path='/' component={Search} />
|
||||
<Route path='/hosted-events' component={HostedEvent} />
|
||||
<Route path='/hosted-events' component={HostedEvents} />
|
||||
</Switch>
|
||||
</div>
|
||||
</BrowserRouter>
|
||||
|
||||
Reference in new issue
Block a user