From 8a3e58a752f883674a6dcb64bfdb5bccda13b634 Mon Sep 17 00:00:00 2001 From: ES Date: Wed, 10 Apr 2019 11:40:40 +0530 Subject: [PATCH 01/13] Linter fixes --- README.md | 32 ++++++++++++++-------------- nwb.config.js | 2 +- src/Renderer/Body/Date.js | 2 +- src/Renderer/Body/Image.js | 2 +- src/Renderer/Pagination/Pages.js | 4 ++-- src/Renderer/Toolbar/Columns.js | 4 ++-- src/Renderer/Toolbar/ResetFilters.js | 2 +- src/components/Dropdown.js | 5 +---- src/constants.js | 2 +- src/createTable.js | 24 +++++++++++---------- 10 files changed, 39 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index 4b194e9..ac57b42 100644 --- a/README.md +++ b/README.md @@ -7,19 +7,19 @@ Datatable built using React and Redux to fetch JSON data asynchronously using REST API. -- Filterable columns by date ranges, numeric ranges and text. -- Pagination -- Sortable columns -- Configurable column widths -- Built in windowing to handle large dataset with thousands of rows -- Customizable limiter options -- Customizable toolbar with the ability to add custom renderers -- Completely configurable headers, filters, toolbar and pagination with options to enable/disable them individual -- Custom row level actions -- Thunks to handle custom mass or row actions externally. -- Compatible with normalizr to handle externally managed states -- Easily stylable with styled-components. -- Show or hide columns dynamically using the Columns item in the toolbar. +- Filterable columns by date ranges, numeric ranges and text. +- Pagination +- Sortable columns +- Configurable column widths +- Built in windowing to handle large dataset with thousands of rows +- Customizable limiter options +- Customizable toolbar with the ability to add custom renderers +- Completely configurable headers, filters, toolbar and pagination with options to enable/disable them individual +- Custom row level actions +- Thunks to handle custom mass or row actions externally. +- Compatible with normalizr to handle externally managed states +- Easily stylable with styled-components. +- Show or hide columns dynamically using the Columns item in the toolbar. ## Installation @@ -31,7 +31,7 @@ npm i @flipbyte/redux-datatable ## Usage -#### Add the table reducer and epics to your store. +### Add the table reducer and epics to your store. ```javascript // Get the table reducer and epics as follows @@ -40,7 +40,7 @@ import { reducer, epics } from '@flipbyte/redux-datatable'; // Add the above reducer and epics to your store. ``` -#### Preparing your table config object +### Preparing your table config object ```javascript { @@ -170,7 +170,7 @@ import { reducer, epics } from '@flipbyte/redux-datatable'; } ``` -#### Render table component +### Render table component ```javascript import ReduxDatatable from '@flipbyte/redux-datatable'; diff --git a/nwb.config.js b/nwb.config.js index a7e1c20..cf35913 100644 --- a/nwb.config.js +++ b/nwb.config.js @@ -9,4 +9,4 @@ module.exports = { } } } -} +}; diff --git a/src/Renderer/Body/Date.js b/src/Renderer/Body/Date.js index 27f05cc..0b0b174 100644 --- a/src/Renderer/Body/Date.js +++ b/src/Renderer/Body/Date.js @@ -9,6 +9,6 @@ const Date = ({ colConfig: { name, textAlign, format } }) => (