Blame view
imports/client/views/nonOrg/app/module/navigation/AuthenticatedNavigation.js
747 Bytes
8c4a3096b
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import React from 'react'; import { browserHistory } from 'react-router'; import { LinkContainer } from 'react-router-bootstrap'; import { Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; import { Meteor } from 'meteor/meteor'; const handleLogout = () => Meteor.logout(() => browserHistory.push('/login')); const userName = () => { const user = Meteor.user(); const name = user && user.profile ? user.profile.name : ''; return user ? `${name.first} ${name.last}` : ''; }; const AuthenticatedNavigation = () => ( <div> <Nav> <LinkContainer to="/documents"> <NavItem eventKey={ 2 } href="/documents">Documents</NavItem> </LinkContainer> </Nav> |
8c4a3096b
|
22 23 24 25 |
</div> ); export default AuthenticatedNavigation; |