Skip to content

Commit

Permalink
Add sidebar item for meetings, and page titles
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgepigdaniel committed Oct 10, 2017
1 parent 739620e commit 4129a66
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/components/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ const Sidebar = ({ onClick, path }) =>
Create Meeting Agenda{' '}
</NavLink>

<NavLink
activeClassName={styles.active}
to={{ type: 'ISSUE', payload: { issueId: 1 } }}
>
Vote on meeting 1{' '}
</NavLink>

</div>

const active = (currentPath, path) =>
Expand Down
4 changes: 3 additions & 1 deletion src/reducers/title.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ export default (state = 'RFR Demo', action = {}) => {
case 'LOGIN':
return 'RFR Login'
case 'ADMIN':
return 'RFR Admin'
return 'Create issue'
case 'ISSUE':
return 'Issue 1' // TODO the speicfic issue
default:
return state
}
Expand Down
3 changes: 3 additions & 0 deletions src/routesMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export default {
path: '/admin', // TRY: visit this path or dispatch ADMIN
role: 'admin', // + change jwToken to 'real' in server/index.js
},
ISSUE: {
path: '/issues/:issueId',
},
}

// DON'T GO DOWN THERE!
Expand Down

0 comments on commit 4129a66

Please sign in to comment.