-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathcontainer.js
More file actions
38 lines (34 loc) · 1.17 KB
/
container.js
File metadata and controls
38 lines (34 loc) · 1.17 KB
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
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 || 'container'
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 core
</a>
</div>
</div>
</nav>
<div style={{marginTop: '50px', padding: '30px'}}>
<Nav bsStyle="pills" justified activeKey={route}>
<NavItem eventKey="container" href="/example/container">Chart Container</NavItem>
<NavItem eventKey="grid" href="/example/grid">Grid</NavItem>
<NavItem eventKey="label" href="/example/label">Label</NavItem>
<NavItem eventKey="legend" href="/example/legend">Legend</NavItem>
<NavItem eventKey="xaxis" href="/example/xaxis">Xaxis</NavItem>
<NavItem eventKey="yaxis" href="/example/yaxis">Yaxis</NavItem>
</Nav>
</div>
{this.props.children}
</div>
)
}
}