Skip to content

Commit

Permalink
fix IndexLinkContainer
Browse files Browse the repository at this point in the history
- I can't fix another one because react-bootstrap doesn't have Navbar.Button react-bootstrap/react-router-bootstrap#185
change menuItem name : Organizer -> Program
  • Loading branch information
appleparan committed Oct 27, 2016
1 parent 99afbad commit 9835715
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions imports/ui/containers/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,35 @@ import React, { Component } from 'react';
import { render } from 'react-dom';

import { Navbar, Nav, NavItem, NavDropdown, MenuItem, Button } from 'react-bootstrap';
import { IndexLink, Link } from 'react-router';
import { IndexLinkContainer, LinkContainer } from 'react-router-bootstrap';

// For IndexLink & LinkContainer
// https://themeteorchef.com/snippets/react-router-basics/#tmc-setting-up-our-routes
export const NavbarLayout = () => (
<Navbar fixedTop>
<IndexLinkContainer to="/">
<Navbar.Header>
<Navbar.Brand>
<IndexLinkContainer to="/">
<a>2017 Winter School</a>
</IndexLinkContainer>
</Navbar.Brand>
<Navbar.Toggle />
</Navbar.Header>
</IndexLinkContainer>
<Navbar.Header>
<Navbar.Brand>
<IndexLink to="/">
2017 Winter School
</IndexLink>
</Navbar.Brand>
<Navbar.Toggle />
</Navbar.Header>
<Navbar.Collapse>
<Nav pullRight>
<LinkContainer to="/program">
<NavItem title="Program" eventKey="1">Organizers</NavItem>
<NavItem title="Program" eventKey="1">Program</NavItem>
</LinkContainer>
<LinkContainer to="/schedule">
<NavItem title="Schedule" eventKey="2">Schedule</NavItem>
</LinkContainer>
<LinkContainer to="/venue">
<NavItem title="Venue" eventKey="3">Venue</NavItem>
</LinkContainer>
<Navbar.Form pullLeft>
<LinkContainer to="/registernow">
<Button eventKey="4" bsStyle="primary"> Register Now </Button>
</LinkContainer>
</Navbar.Form>
<LinkContainer to="/register">
<Button title="Register" eventKey="4" bsStyle="primary" className="navbar-btn"> Register Now </Button>
</LinkContainer>
</Nav>
</Navbar.Collapse>
</Navbar>
Expand Down

0 comments on commit 9835715

Please sign in to comment.