Skip to content

Commit

Permalink
Avoid special treatment for sortProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlbyk committed Oct 16, 2017
1 parent d69275a commit 0cbc7d8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/module.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ interface GriddleInitialState {
enableSettings?: boolean;
pageProperties?: GriddlePageProperties;
sortMethod?: (data: any[], column: string, sortAscending?: boolean) => number;
sortProperties?: GriddleSortKey[];
textProperties?: {
next?: string,
previous?: string,
Expand All @@ -399,7 +400,6 @@ export interface GriddlePlugin extends GriddleExtensibility {
export interface GriddleProps<T> extends GriddlePlugin, GriddleInitialState {
plugins?: GriddlePlugin[];
data?: T[];
sortProperties?: GriddleSortKey[];
storeKey?: string;
}

Expand Down
1 change: 0 additions & 1 deletion src/utils/__tests__/initilizerTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const expectedDefaultInitialState = {
rowProperties: null,
columnProperties: {},
},
sortProperties: {},
styleConfig: {},
};

Expand Down
2 changes: 0 additions & 2 deletions src/utils/initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = function initializer(defaults) {
data = [],
children: rowPropertiesComponent,
events: userEvents = {},
sortProperties = {},
styleConfig: userStyleConfig = {},
components: userComponents,
renderProperties: userRenderProperties = {},
Expand Down Expand Up @@ -73,7 +72,6 @@ module.exports = function initializer(defaults) {
{
data,
renderProperties,
sortProperties,
styleConfig,
}
);
Expand Down

0 comments on commit 0cbc7d8

Please sign in to comment.