diff --git a/package.json b/package.json index c7ed6a7ab..4d9541d80 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "@babel/preset-react": "7.0.0", "babel-eslint": "10.0.1", "babel-loader": "^8.0.4", + "babel-polyfill": "^6.26.0", "buble": "0.19.3", "docz": "0.13.7", "docz-theme-default": "0.13.7", diff --git a/src/demo.js b/src/demo.js index 177104470..e7880970b 100644 --- a/src/demo.js +++ b/src/demo.js @@ -61,30 +61,11 @@ class App extends Component { title="Demo Title" options={{ }} - isLoading /> - - - - - ); } diff --git a/src/m-table-pagination.js b/src/m-table-pagination.js index a157be58c..5e544109e 100644 --- a/src/m-table-pagination.js +++ b/src/m-table-pagination.js @@ -49,7 +49,7 @@ class MTablePaginationInner extends React.Component { - + {localization.labelDisplayedRows.replace('{from}', this.props.page * this.props.rowsPerPage + 1).replace('{to}', Math.min((this.props.page + 1) * this.props.rowsPerPage, this.props.count)).replace('{count}', this.props.count)} @@ -84,7 +84,7 @@ const actionsStyles = theme => ({ flexShrink: 0, color: theme.palette.text.secondary, display: 'flex', - lineHeight: '48px' + // lineHeight: '48px' } }); diff --git a/webpack.config.js b/webpack.config.js index b613a91f8..adb1b38c7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,7 +1,7 @@ const webpack = require('webpack'); module.exports = { - entry: './src/demo.js', + entry: ['babel-polyfill', './src/demo.js'], module: { rules: [ {