-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathcontainer.js
44 lines (40 loc) · 1.77 KB
/
container.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import React, { Component } from 'react'
import {Nav, NavItem} from 'react-bootstrap'
export default class ContainerExample extends Component {
constructor(props) {
super(props)
}
render() {
const route = this.props.routes[1].path || 'area_stack'
return (
<div>
<nav className="navbar navbar-default navbar-fixed-top">
<div className="container">
<div className="navbar-header">
<a className="navbar-brand" href="/example">
React-d3 shape
</a>
</div>
</div>
</nav>
<div style={{marginTop: '50px', padding: '30px'}}>
<Nav bsStyle="pills" justified activeKey={route}>
<NavItem eventKey="area_stack" href="/example/area_stack">Area Stack</NavItem>
<NavItem eventKey="bar" href="/example/bar">Bar</NavItem>
<NavItem eventKey="bar_group" href="/example/bar_group">Bar Group</NavItem>
<NavItem eventKey="bar_group_horizontal" href="/example/bar_group_horizontal">Bar Group Horizontal</NavItem>
<NavItem eventKey="bar_horizontal" href="/example/bar_horizontal">Bar Horizontal</NavItem>
<NavItem eventKey="bar_stack" href="/example/bar_stack">Bar Stack</NavItem>
<NavItem eventKey="bar_stack_horizontal" href="/example/bar_stack_horizontal">Bar Stack Horizontal</NavItem>
<NavItem eventKey="donut" href="/example/donut">Donut</NavItem>
<NavItem eventKey="line" href="/example/line">Line</NavItem>
<NavItem eventKey="pie" href="/example/pie">Pie</NavItem>
<NavItem eventKey="scatter" href="/example/scatter">Scatter</NavItem>
<NavItem eventKey="multi_line_brush" href="/example/multi_line_brush">Brush Chart</NavItem>
</Nav>
</div>
{this.props.children}
</div>
)
}
}