diff --git a/package.json b/package.json index 31d39c6..70815e3 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "author": "Niall Crosby ", "license": "MIT", "bugs": { - "url": "https://github.com/ceolter/ag-grid/issues" + "url": "https://github.com/ceolter/ag-grid-react-example/issues" }, "homepage": "http://www.ag-grid.com/", "devDependencies": { @@ -34,7 +34,7 @@ "dependencies": { "react": "0.14.6", "react-dom": "0.14.6", - "ag-grid": "3.2.2", - "ag-grid-react-component": "3.2.2" + "ag-grid": "~3.3.0-alpha.1", + "ag-grid-react": "3.3.0-alpha.1" } } diff --git a/src/ColDefFactory.jsx b/src/ColDefFactory.jsx index 3bd22a3..487c375 100644 --- a/src/ColDefFactory.jsx +++ b/src/ColDefFactory.jsx @@ -1,11 +1,8 @@ import SkillsCellRenderer from './SkillsCellRenderer.jsx'; import ProficiencyCellRenderer from './ProficiencyCellRenderer.jsx'; import RefData from './RefData'; -import ReactDOM from 'react-dom'; -import React from 'react'; -import AgGrid from 'ag-grid-react-component'; -import {reactCellRendererFactory} from 'ag-grid-react-component'; -import {reactFilterFactory} from 'ag-grid-react-component'; +import {reactCellRendererFactory} from 'ag-grid-react'; +import {reactFilterFactory} from 'ag-grid-react'; import SkillsFilter from './SkillsFilter.jsx'; import ProficiencyFilter from './ProficiencyFilter.jsx'; diff --git a/src/index.js b/src/index.js index 1bbecdd..0a0c92d 100644 --- a/src/index.js +++ b/src/index.js @@ -4,8 +4,8 @@ import ReactDOM from 'react-dom'; import React from 'react'; import MyApp from './MyApp.jsx'; // is there a better way of doing this? -import 'ag-grid-root/ag-grid.css'; -import 'ag-grid-root/theme-fresh.css'; +import 'ag-grid-root/styles/ag-grid.css'; +import 'ag-grid-root/styles/theme-fresh.css'; // waiting for dom to load before booting react. we could alternatively // put the index.js reference at the end fo the index.html, but i prefer this way. diff --git a/src/myApp.jsx b/src/myApp.jsx index 94fe726..e6be854 100644 --- a/src/myApp.jsx +++ b/src/myApp.jsx @@ -1,6 +1,6 @@ import ReactDOM from 'react-dom'; import React from 'react'; -import {AgGridReact} from 'ag-grid-react-component'; +import {AgGridReact} from 'ag-grid-react'; import RefData from './RefData'; import RowDataFactory from './RowDataFactory'; import ColDefFactory from './ColDefFactory.jsx'; diff --git a/webpack.config.js b/webpack.config.js index 3cbecef..e613e7f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -21,7 +21,7 @@ module.exports = { }, resolve: { alias: { - "ag-grid-root" : __dirname + "/node_modules/ag-grid/dist" + "ag-grid-root" : __dirname + "/node_modules/ag-grid" } } }; \ No newline at end of file