Skip to content

Commit 2b3ea72

Browse files
authored
Fixed normalized data issue and other fixes (#7)
* Linter fixes * Updated dependencies * Fixed normalized data display issue * Linter fixes * 0.2.1 * Code quality fixes * Fixed sort icon alignment * Delete flipbyte-redux-datatable-0.2.0.tgz * Code quality fixes. * Code quality fixes * Fixes #8 * Removed console log statement * Linter fixes
1 parent ff25798 commit 2b3ea72

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+485
-465
lines changed

README.md

Lines changed: 103 additions & 97 deletions
Large diffs are not rendered by default.

demo/src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import './css/styles.css';
1212

1313
const store = configureStore(config);
1414

15-
const Demo = () =>
15+
const Demo = () => (
1616
<div className="d-flex" id="wrapper">
1717
<div className="bg-light border-right sidenav" id="sidebar-wrapper">
1818
<div className="sidebar-heading"><strong>redux-datatable</strong></div>
@@ -36,6 +36,7 @@ const Demo = () =>
3636
</div>
3737
</div>
3838
</div>
39+
);
3940

4041
render(
4142
<Provider store={ store }>

demo/src/schema/basic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default {
137137
label: 'Delete',
138138
indexField: '@id',
139139
thunk: ( payload ) => ( dispatch, getState ) => {
140-
confirm("Are your sure you want to delete the selected items?")
140+
confirm('Are your sure you want to delete the selected items?')
141141
? console.log('delete items', getState())
142142
: console.log(false);
143143

@@ -211,7 +211,7 @@ export default {
211211
id: '@id'
212212
},
213213
thunk: ( payload ) => ( dispatch, getState ) => {
214-
confirm("Are your sure you want to delete this page?")
214+
confirm('Are your sure you want to delete this page?')
215215
? console.log('delete', getState())
216216
: console.log(false);
217217

demo/src/schema/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import basic from './basic';
22

33
export default [
44
{
5-
title: "Basic Table",
6-
id: "basic-table",
7-
className: "mb-4",
5+
title: 'Basic Table',
6+
id: 'basic-table',
7+
className: 'mb-4',
88
config: basic
99
}
1010
]

nwb.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ module.exports = {
99
}
1010
}
1111
}
12-
}
12+
};

package-lock.json

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flipbyte/redux-datatable",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "React-Redux data table",
55
"main": "lib/index.js",
66
"module": "es/index.js",
@@ -20,13 +20,13 @@
2020
"test:watch": "nwb test-react --server"
2121
},
2222
"peerDependencies": {
23-
"react": "^16.8.4",
24-
"react-dom": "^16.8.4",
23+
"react": "^16.8.6",
24+
"react-dom": "^16.8.6",
2525
"rxjs": "^6.4.0",
2626
"prop-types": "^15.6.2",
2727
"react-redux": "^6.0.1",
2828
"redux": "^4.0.1",
29-
"styled-components": "^4.1.3"
29+
"styled-components": "^4.2.0"
3030
},
3131
"dependencies": {
3232
"lodash": ">=4.17.10",
@@ -44,13 +44,13 @@
4444
"bootstrap": "^4.3.1",
4545
"nwb": "0.23.x",
4646
"path-to-regexp": "^3.0.0",
47-
"react": "^16.8.4",
48-
"react-dom": "^16.8.4",
47+
"react": "^16.8.6",
48+
"react-dom": "^16.8.6",
4949
"react-redux": "^6.0.1",
5050
"redux": "^4.0.1",
5151
"redux-logger": "^3.0.6",
5252
"rxjs": "^6.4.0",
53-
"styled-components": "^4.1.3"
53+
"styled-components": "^4.2.0"
5454
},
5555
"author": "",
5656
"homepage": "",

src/Renderer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const getRenderers = ( ofType ) => renderers[ofType] || {};
5050
const Renderer = ({ ofType, forItem, ...props }) => {
5151
const renderers = getRenderers(ofType);
5252
const Renderer = renderers[forItem] || renderers['default'];
53-
return <Renderer { ...props } />
54-
}
53+
return <Renderer { ...props } />;
54+
};
5555

5656
export default Renderer;

src/Renderer/Body/Actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { connect } from 'react-redux';
33
import React, { Component } from 'react';
44
import { deleteData } from '../../actions';
55
import { withTableConfig } from '../../TableProvider';
6-
import { paramsResolver, prepareActionPayload } from '../../utils'
6+
import { paramsResolver, prepareActionPayload } from '../../utils';
77
import Button from '../../components/Button';
88

99
const Actions = ({

src/Renderer/Body/Date.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import _ from 'lodash';
22
import Time from 'react-pure-time';
33
import React, { Component } from 'react';
4-
import { shouldUpdate } from '../../utils';
54

65
const Date = ({
76
data,
87
index,
98
colConfig: { name, textAlign, format }
109
}) => (
1110
<Time value={ _.get(data, name, '') } format={ format ? format : 'F j, Y, g:i a' } />
12-
)
11+
);
1312

1413
export default Date;

0 commit comments

Comments
 (0)