Skip to content

Commit 543e413

Browse files
authored
0.7.1 (#43)
* Fixes * Minor fix * 0.7.1
1 parent ae8d77c commit 543e413

File tree

16 files changed

+50
-65
lines changed

16 files changed

+50
-65
lines changed

demo/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component } from 'react'
1+
import React, { Component } from 'react';
22
import { render } from 'react-dom';
33
import tables from './schema';
44
import ExampleTableContainer from './ExampleTableContainer';

demo/src/schema/basic.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default {
107107
// Get current table state.
108108
const tableState = getState()[config.reducerName][config.name];
109109
console.log(config, tableState);
110-
console.log(getItemIds(tableState.selection, tableState.items, config.primaryKey/*, config.entity.schema*/))
110+
console.log(getItemIds(tableState.selection, tableState.items, config.primaryKey/*, config.entity.schema*/));
111111
confirm('Are your sure you want to delete the selected items?')
112112
? console.log('delete items', config, getState(), tableState)
113113
: console.log(false);
@@ -270,31 +270,31 @@ export default {
270270
sortable: true,
271271
// editable: true
272272
},{
273-
label: "Status",
274-
type: "options",
275-
name: "entityData.data.status",
273+
label: 'Status',
274+
type: 'options',
275+
name: 'entityData.data.status',
276276
sortable: true,
277277
filterable: true,
278-
textAlign: "center",
278+
textAlign: 'center',
279279
width: 150,
280280
options: {
281-
"published": {
282-
"label": "Published"
281+
published: {
282+
'label': 'Published'
283283
},
284-
"draft": {
285-
"label": "Draft"
284+
draft: {
285+
'label': 'Draft'
286286
},
287-
"unpublished": {
288-
"label": "Unpublished"
287+
unpublished: {
288+
'label': 'Unpublished'
289289
},
290-
"pending-review": {
291-
"label": "Pending Review"
290+
'pending-review': {
291+
'label': 'Pending Review'
292292
},
293-
"trashed": {
294-
"label": "Trashed"
293+
trashed: {
294+
'label': 'Trashed'
295295
},
296-
"archived": {
297-
"label": "Archived"
296+
archived: {
297+
'label': 'Archived'
298298
}
299299
},
300300
editable: true

demo/src/schema/normalized.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -292,31 +292,31 @@ export default {
292292
sortable: true,
293293
// editable: true
294294
},{
295-
label: "Status",
296-
type: "options",
297-
name: "entityData.data.status",
295+
label: 'Status',
296+
type: 'options',
297+
name: 'entityData.data.status',
298298
sortable: true,
299299
filterable: true,
300-
textAlign: "center",
300+
textAlign: 'center',
301301
width: 150,
302302
options: {
303-
"published": {
304-
"label": "Published"
303+
'published': {
304+
'label': 'Published'
305305
},
306-
"draft": {
307-
"label": "Draft"
306+
'draft': {
307+
'label': 'Draft'
308308
},
309-
"unpublished": {
310-
"label": "Unpublished"
309+
'unpublished': {
310+
'label': 'Unpublished'
311311
},
312-
"pending-review": {
313-
"label": "Pending Review"
312+
'pending-review': {
313+
'label': 'Pending Review'
314314
},
315-
"trashed": {
316-
"label": "Trashed"
315+
'trashed': {
316+
'label': 'Trashed'
317317
},
318-
"archived": {
319-
"label": "Archived"
318+
'archived': {
319+
'label': 'Archived'
320320
}
321321
},
322322
editable: true

nwb.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ module.exports = {
77
externals: {
88
react: 'React',
99
lodash: '_',
10-
"redux-observable": 'ReduxObservable',
11-
"redux-thunk": 'ReduxThunk'
10+
'redux-observable': 'ReduxObservable',
11+
'redux-thunk': 'ReduxThunk'
1212
}
1313
}
1414
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flipbyte/redux-datatable",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "React-Redux data table",
55
"main": "lib/index.js",
66
"module": "es/index.js",

src/components/Body.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const Body = React.forwardRef(({ top: startTop = 0 }, ref) => {
117117
>
118118
{ renderRow.bind(this, columns, rowHeight, styles, primaryKey, schema) }
119119
</Tbody>
120-
)
120+
);
121121
});
122122

123123
export default withScrollSpy(Body);

src/components/Pages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const Pages = ({
4545
config: { reducerName, name }
4646
} = useContext(ConfigContext);
4747
const query = useSelector(getData((tableData) => tableData.query));
48-
const { page, total } = calculatePaginationProps(query, defaultLimit)
48+
const { page, total } = calculatePaginationProps(query, defaultLimit);
4949
const setPage = ( page ) => action(SET_PAGE)({ page });
5050
return (
5151
<ExtendedList className="rdt-pg-list" styles={ styles.list }>

src/containers/Print.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ const Print = ({ action, children, ...rest }) => {
77
useEffect(() => {
88
window.print();
99
action(SET_IS_PRINTING)({ value: false })
10-
}, [])
10+
}, []);
1111

1212
return <PrintButton { ...rest }>{ children }</PrintButton>;
13-
}
13+
};
1414

1515
export default withModal(Print);

src/createTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const ReduxDatatable = ( props ) => {
5858
action(SET_TABLE_WIDTH)({ width: minWidth, widthAdjustment: 1 });
5959
action(SET_COLUMN_WIDTHS)(columns.reduce((acc, column) => {
6060
acc.push(column.width);
61-
return acc
61+
return acc;
6262
}, []));
6363
}, [ dispatch ]);
6464

0 commit comments

Comments
 (0)