Update aspnet-webpack-react to React 15

^15.0.0 is enough

Update ReactGrid example to work with newest Griddle version

Several fixes to stop build.sh from failing
This commit is contained in:
Geir Sagberg
2016-08-12 11:42:19 +02:00
committed by SteveSandersonMS
parent 6d8767d141
commit 0ad0483935
10 changed files with 45 additions and 37 deletions

View File

@@ -5,6 +5,8 @@ import { fakeData } from '../data/fakeData.js';
import { columnMeta } from '../data/columnMeta.jsx';
const resultsPerPage = 10;
const fakeDataWithAction = fakeData.map(data => Object.assign(data, {actions: ''}));
export class PeopleGrid extends React.Component {
render() {
var pageIndex = this.props.params ? (this.props.params.pageIndex || 1) - 1 : 0;
@@ -12,7 +14,7 @@ export class PeopleGrid extends React.Component {
<div>
<h1>People</h1>
<div id="table-area">
<Griddle results={fakeData}
<Griddle results={fakeDataWithAction}
columns={columnMeta.map(x => x.columnName)}
columnMetadata={columnMeta}
resultsPerPage={resultsPerPage}