AG-420 Improve React implementation
This commit is contained in:
@@ -21,10 +21,10 @@ class FxQuoteMatrix extends Component {
|
||||
onGridReady(params) {
|
||||
this.gridApi = params.api;
|
||||
this.columnApi = params.columnApi;
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.gridApi.setRowData(this.props.rowData);
|
||||
if (this.props.rowData) {
|
||||
this.gridApi.setRowData(this.props.rowData)
|
||||
}
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
|
||||
@@ -44,10 +44,10 @@ class TopMoversGrid extends Component {
|
||||
onGridReady(params) {
|
||||
this.gridApi = params.api;
|
||||
this.columnApi = params.columnApi;
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.gridApi.setRowData(this.props.rowData);
|
||||
if (this.props.rowData) {
|
||||
this.gridApi.setRowData(this.props.rowData);
|
||||
}
|
||||
this.gridApi.sizeColumnsToFit();
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ import {Provider} from "react-redux";
|
||||
|
||||
import "ag-grid-root/dist/styles/ag-grid.css";
|
||||
import "ag-grid-root/dist/styles/theme-fresh.css";
|
||||
// import "ag-grid-root/dist/styles/theme-blue.css";
|
||||
|
||||
import StoreService from './services/StoreService';
|
||||
import TraderDashboard from "./components/TraderDashboard.jsx";
|
||||
|
||||
Reference in New Issue
Block a user