forked from yuristrelets/react-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
30 lines (25 loc) · 700 Bytes
/
index.js
File metadata and controls
30 lines (25 loc) · 700 Bytes
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
import React from 'react';
import { AppBar } from 'react-toolbox';
import { Link } from 'react-router';
import Logo from '../logo';
import Navigation from '../navigation';
import style from './style';
const MainAppBar = (props) => {
let className = style.appbar;
if (props.className) className += ` ${props.className}`;
return (
<AppBar className={className} flat fixed>
<Link to='/'>
<Logo className={style.logo} />
</Link>
<Navigation activeClassName={style.active} className={style.navigation}/>
</AppBar>
);
};
MainAppBar.propTypes = {
className: React.PropTypes.string
};
MainAppBar.defaultProps = {
className: ''
};
export default MainAppBar;