EventJenga.jsx 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import React from 'react'
  2. import JengaDrag from './jenga/panel/JengaDrag'
  3. import JengaNav from './jenga/nav/JengaNav'
  4. import JengaPanel from './jenga/panel/JengaPanel'
  5. // import JengaAction from './jenga/panel/JengaAction'
  6. import JengaServiceDebug from '../../common/serviceDebug/JengaServiceDebug'
  7. import ServiceLogView from '../../common/serviceLogView/ServiceLogView'
  8. import { shallowEqualImmutable } from 'utils/utils'
  9. export default class EventJenga extends React.Component {
  10. constructor(props) {
  11. super(props)
  12. }
  13. shouldComponentUpdate(nextProps, nextState) {
  14. return (
  15. !shallowEqualImmutable(this.props, nextProps) ||
  16. !shallowEqualImmutable(this.state, nextState)
  17. )
  18. }
  19. render() {
  20. return (
  21. <div className="event-jenga-panel">
  22. <JengaDrag />
  23. <JengaNav curEventNodeList={this.props.curEventNodeList} />
  24. <JengaPanel
  25. curEventNodeList={this.props.curEventNodeList}
  26. filterBlockIdsMap={this.props.filterBlockIdsMap}
  27. />
  28. <JengaServiceDebug />
  29. <ServiceLogView />
  30. {/* <JengaAction /> */}
  31. </div>
  32. )
  33. }
  34. }