Fix up reference to newpost
This commit is contained in:
parent
09b2b08421
commit
09bc6c16fd
2 changed files with 2 additions and 2 deletions
|
@ -17,9 +17,9 @@ function App() {
|
||||||
<Route exact path="/" component={PostList}/>
|
<Route exact path="/" component={PostList}/>
|
||||||
<Route exact path="/about/" component={About}/>
|
<Route exact path="/about/" component={About}/>
|
||||||
<Route exact path="/posts/" component={PostList}/>
|
<Route exact path="/posts/" component={PostList}/>
|
||||||
|
<Route exact path="/newpost/" component={NewPost}/>
|
||||||
<Route path="/posts/:slug" component={Post}/>
|
<Route path="/posts/:slug" component={Post}/>
|
||||||
<Route path="/users/:user" component={User}/>
|
<Route path="/users/:user" component={User}/>
|
||||||
<Route path="/newpost/" component={NewPost}/>
|
|
||||||
</Switch>
|
</Switch>
|
||||||
</Router>
|
</Router>
|
||||||
<Footer/>
|
<Footer/>
|
||||||
|
|
|
@ -190,7 +190,7 @@ class AuthMenu extends Component {
|
||||||
<div className="ui menu dropdown" style={{display: "inline"}}>
|
<div className="ui menu dropdown" style={{display: "inline"}}>
|
||||||
<div className="ui left icon input">
|
<div className="ui left icon input">
|
||||||
<i className="edit icon"></i>
|
<i className="edit icon"></i>
|
||||||
<button onClick={() => { document.location.href = "newpost"; }} className="fluid ui positive button">Create Post!</button>
|
<button onClick={() => { document.location.href = "/newpost/"; }} className="fluid ui positive button">Create Post!</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue