UNPKG

@6thquake/react-material

Version:

React components that implement Google's Material Design.

40 lines (34 loc) 1.04 kB
import _extends from "@babel/runtime/helpers/extends"; /** * @ignore - do not document. */ import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import AbundantCrossTabulationContent from './AbundantCrossTabulationContent'; import CrossTabulationRenderers from './CrossTabulationRenderers'; import withDragAndDrop from '../../DragAndDrop/withDragAndDrop'; class AbundantCrossTabulation extends React.PureComponent { constructor(props) { super(props); this.state = { crossTableState: props }; } componentWillReceiveProps(nextProps) { this.setState({ crossTableState: nextProps }); } render() { return React.createElement(AbundantCrossTabulationContent, _extends({ renderers: _extends({}, CrossTabulationRenderers) }, this.state.crossTableState, { onChange: s => this.setState({ crossTableState: s }), unusedOrientationCutoff: Infinity })); } } export default withDragAndDrop()(AbundantCrossTabulation);