Test, Fix and Clean React Examples

This commit is contained in:
MrSafferty
2018-06-29 10:58:22 +01:00
parent a2743f9076
commit 849472a031
10 changed files with 55 additions and 34 deletions

View File

@@ -39,7 +39,7 @@ class GridComponent extends Component {
render() {
return (
<div style={{height: 400, width: 900, marginTop: 15}}
className="ag-fresh">
className="ag-theme-balham">
<AgGridReact
// properties
columnDefs={this.state.columnDefs}

View File

@@ -1,6 +1,5 @@
import React, {Component} from "react";
import {connect} from "react-redux";
// take this line out if you do not want to use ag-Grid-Enterprise
import "ag-grid-enterprise";

View File

@@ -1,7 +1,6 @@
import React, {Component} from "react";
import {Provider} from "react-redux";
import {createStore} from "redux";
// take this line out if you do not want to use ag-Grid-Enterprise
import "ag-grid-enterprise";
@@ -26,8 +25,8 @@ export default class SimpleReduxExample extends Component {
<Provider store={store}>
<div>
<h1>Simple Redux Example using Connected React Components</h1>
<HeaderComponent />
<GridComponent />
<HeaderComponent/>
<GridComponent/>
</div>
</Provider>
)

View File

@@ -4,6 +4,7 @@ export function updateRowData(rowData) {
rowData
}
}
export function setCurrency(currencySymbol, exchangeRate) {
return {
type: 'CURRENCY_CHANGED',