panel.js 556 B

1234567891011121314151617181920212223242526
  1. /**
  2. * @author oldj
  3. * @blog http://oldj.net
  4. */
  5. 'use strict';
  6. import React from 'react';
  7. import Buttons from './buttons';
  8. import SearchBar from './searchbar';
  9. import List from './list';
  10. import './panel.less';
  11. export default class Panel extends React.Component {
  12. render() {
  13. let {current, hosts} = this.props;
  14. return (
  15. <div id="panel">
  16. <List hosts={hosts} current={current} setCurrent={this.props.setCurrent}/>
  17. <SearchBar/>
  18. <Buttons/>
  19. </div>
  20. );
  21. }
  22. }