Commit 9a1f84f8 authored by Jure's avatar Jure

Make AppBar work

parent acb02680
......@@ -10,17 +10,15 @@ import { AppBar } from '@pubsweet/ui'
const Navigation = ({ logoutUser, currentUser }) => (
<AppBar
brand={<img alt="pubsweet" src="/assets/pubsweet.jpg" />}
navLinks={
<div>
<NavLink to="/manage/posts">Posts</NavLink>
<Authorize object={{ path: '/users' }} operation="GET">
<NavLink to="/manage/users">Users</NavLink>
</Authorize>
<Authorize object={{ path: '/teams' }} operation="GET">
<NavLink to="/manage/teams">Teams</NavLink>
</Authorize>
</div>
}
navLinkComponents={[
<NavLink to="/manage/posts">Posts</NavLink>,
<Authorize object={{ path: '/users' }} operation="GET">
<NavLink to="/manage/users">Users</NavLink>
</Authorize>,
<Authorize object={{ path: '/teams' }} operation="GET">
<NavLink to="/manage/teams">Teams</NavLink>
</Authorize>,
]}
onLogoutClick={logoutUser}
user={currentUser}
/>
......
......@@ -21,11 +21,9 @@ module.exports = {
teams: {
teamContributors: {
name: 'Contributors',
permissions: 'POST',
},
teamCoauthors: {
name: 'Coauthors',
permissions: 'PATCH',
},
},
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment