Press n or j to go to the next uncovered block, b, p or k for the previous block.
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | import React, { Component, Fragment } from "react"; import { connect } from "react-redux"; import { ScrollSync, ScrollSyncPane } from "react-scroll-sync"; import { dataPropType, heightNumberPropType, widthNumberPropType, columnSizeMultiplierPropType } from "../../proptypes"; class FixedLeftPanel extends Component { render() { const { data, height, columnSizeMultiplier, width, totalWidthNumber } = this.props; return ( <div style={{ width: "150px", height: "577px", background: "red", float: "left", position: "relative", zIndex: "99" }} /> ); } } FixedLeftPanel.propTypes = { data: dataPropType.isRequired, height: heightNumberPropType.isRequired, width: widthNumberPropType.isRequired, totalWidthNumber: widthNumberPropType, columnSizeMultiplier: columnSizeMultiplierPropType }; const mapStateToProps = state => { return { data: state.datatableReducer.data, height: state.datatableReducer.dimensions.body.heightNumber, width: state.datatableReducer.dimensions.datatable.widthNumber, totalWidthNumber: state.datatableReducer.dimensions.datatable.totalWidthNumber, columnSizeMultiplier: state.datatableReducer.dimensions.columnSizeMultiplier }; }; export default connect(mapStateToProps)(FixedLeftPanel); |