Skip to content

Instantly share code, notes, and snippets.

@balibou
Last active August 3, 2016 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balibou/787caff140ba3af9e64f4d304b1ff808 to your computer and use it in GitHub Desktop.
Save balibou/787caff140ba3af9e64f4d304b1ff808 to your computer and use it in GitHub Desktop.
// ./imports/ui/components/public-navigation.js
import React from 'react';
import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap';
import { Nav, NavItem } from 'react-bootstrap';
export const PublicNavigation = () => (
<div>
{/*Add a 'Plans' link*/}
<Nav>
<IndexLinkContainer to="/plans">
<NavItem eventKey={ 3 } href="/plans">Plans</NavItem>
</IndexLinkContainer>
</Nav>
{/*------------------*/}
<Nav pullRight>
<LinkContainer to="signup">
<NavItem eventKey={ 1 } href="/signup">Sign Up</NavItem>
</LinkContainer>
<LinkContainer to="login">
<NavItem eventKey={ 2 } href="/login">Log In</NavItem>
</LinkContainer>
</Nav>
</div>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment