1
0
Fork 0

More cleanup

This commit is contained in:
Amarpreet Minhas 2020-01-22 23:30:35 -05:00
parent 07cd6704fc
commit f87d680305
2 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,3 @@
REACT_APP_API_PROTO=http://
REACT_APP_API_DOMAIN=sudosci.test:8080
REACT_APP_API_PATH=/v1/api/
REACT_APP_API_DOMAIN=sudosci.test
REACT_APP_API_PATH=:8080/v1/api/

View file

@ -198,10 +198,12 @@ class AuthMenu extends Component {
case 'loggedIn':
return (
<div className="ui menu dropdown" style={{display: "inline"}}>
{ this.state.admin &&
<div className="ui left icon input">
<i className="edit icon"></i>
<button onClick={() => { document.location.href = "/newpost/"; }} className="fluid ui positive button">Create Post!</button>
</div>
}
<div className="ui left icon input">
<i className="sign-out icon"></i>
<button onClick={() => {