react-toolbox/spec/components/navigation.jsx

25 lines
546 B
React
Raw Normal View History

2015-10-12 03:42:01 +03:00
import React from 'react';
import Navigation from '../../components/navigation';
2015-10-22 02:31:17 +03:00
class NavigationTest extends React.Component {
state = {
routes: [
{ label: 'Github', route: 'http://www.github.com', icon: 'bookmark' },
{ label: 'Mail', route: 'http://mail.google.com', icon: 'inbox' }
]
};
2015-10-12 03:42:01 +03:00
render () {
return (
<section>
<h5>Navigation</h5>
<p>lorem ipsum...</p>
<Navigation type='vertical' routes={this.state.routes} />
</section>
);
}
2015-10-21 13:25:07 +03:00
}
2015-10-22 02:31:17 +03:00
export default NavigationTest;