Skip to content

Commit 41cad0e

Browse files
authored
Merge pull request #45 from easeq/master
Minor fixes and changes
2 parents 6a7b38a + 7f9e9cb commit 41cad0e

File tree

24 files changed

+39
-37
lines changed

24 files changed

+39
-37
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Please check the example table config object above.
344344

345345
#### Entity array
346346

347-
All the fields are required when entity is defined. However, entity key itself is optional in the table config.
347+
All the fields are required when entity is defined (data normalized). However, entity key itself is optional in the table config.
348348

349349
| Key | Type | Required | Default | Description |
350350
| -------------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------- |

demo/src/schema/normalized.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const tableSchema = ( entityName, idAttributeName, definition = {}) => {
1414
return {
1515
rowSchema,
1616
responseSchema
17-
}
17+
};
1818
};
1919

2020
const pageSelector = (id) => createSelector(

demo/src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const prepareEpics = ( epics ) => {
3434
let dependencies = { ...requestHandlers };
3535

3636
return { rootEpic, dependencies };
37-
}
37+
};
3838

3939
const configureStore = ( config ) => {
4040
const { reducers = {} } = config;

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.2",
3+
"version": "0.7.3",
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
@@ -5,7 +5,7 @@ import { Tbody, Tr, Td, Div } from '../styled-components';
55
import { Body as Renderers } from './Renderer';
66
import { getStyles, getRenderer } from '../utils';
77
import { MODIFY_DATA, SET_BODY_INNER_WIDTH } from '../actions';
8-
import withScrollSpy from '../hoc/withScrollSpy';
8+
import { withScrollSpy } from '../hoc';
99
import ConfigContext from '../context';
1010
import { createSelector } from 'reselect';
1111

src/components/Columns.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useContext } from 'react';
22
import { useSelector } from 'react-redux';
3-
import withDropdown from '../hoc/withDropdown';
3+
import { withDropdown } from '../hoc';
44
import { Button, Dropdown } from '../styled-components';
55
import ConfigContext from '../context';
66
import { SET_VISIBLE_COLUMN_IDS } from '../actions';

src/components/Filters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Tr, Td, Thead, Div } from '../styled-components';
55
import { getStyles, getRenderer } from '../utils';
66
import { Filters as Renderers } from './Renderer';
77
import { SET_FILTER } from '../actions';
8-
import withScrollSpy from '../hoc/withScrollSpy';
8+
import { withScrollSpy } from '../hoc';
99
import ConfigContext from '../context';
1010

1111
const Filters = React.forwardRef(({ children }, ref) => {
@@ -14,7 +14,7 @@ const Filters = React.forwardRef(({ children }, ref) => {
1414
action,
1515
config: {
1616
components: {
17-
Table: { styles }
17+
Table: { styles = {} }
1818
}
1919
},
2020
getData

src/components/Header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Tr, Th, Thead } from '../styled-components';
44
import { getStyles, getRenderer } from '../utils';
55
import { Header as Renderers } from './Renderer';
66
import { SET_SORT } from '../actions';
7-
import withScrollSpy from '../hoc/withScrollSpy';
7+
import { withScrollSpy } from '../hoc';
88
import ConfigContext from '../context';
99

1010
const changeSortOrder = ( query, colName, sorter ) => {
@@ -32,7 +32,7 @@ const Header = React.forwardRef(({ children }, ref) => {
3232
config: {
3333
primaryKey,
3434
components: {
35-
Table: { styles }
35+
Table: { styles = {} }
3636
}
3737
},
3838
getData

src/components/MassActions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useContext } from 'react';
2-
import withDropdown from '../hoc/withDropdown';
2+
import { withDropdown } from '../hoc';
33
import { Button, Dropdown } from '../styled-components';
44
import ConfigContext from '../context';
55

0 commit comments

Comments
 (0)