More cleanup
This commit is contained in:
parent
07cd6704fc
commit
f87d680305
2 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
||||||
REACT_APP_API_PROTO=http://
|
REACT_APP_API_PROTO=http://
|
||||||
REACT_APP_API_DOMAIN=sudosci.test:8080
|
REACT_APP_API_DOMAIN=sudosci.test
|
||||||
REACT_APP_API_PATH=/v1/api/
|
REACT_APP_API_PATH=:8080/v1/api/
|
||||||
|
|
|
@ -198,10 +198,12 @@ class AuthMenu extends Component {
|
||||||
case 'loggedIn':
|
case 'loggedIn':
|
||||||
return (
|
return (
|
||||||
<div className="ui menu dropdown" style={{display: "inline"}}>
|
<div className="ui menu dropdown" style={{display: "inline"}}>
|
||||||
|
{ this.state.admin &&
|
||||||
<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 className="ui left icon input">
|
<div className="ui left icon input">
|
||||||
<i className="sign-out icon"></i>
|
<i className="sign-out icon"></i>
|
||||||
<button onClick={() => {
|
<button onClick={() => {
|
||||||
|
|
Reference in a new issue