Skip to content

Commit

Permalink
fix default inherit style
Browse files Browse the repository at this point in the history
  • Loading branch information
jbetancur committed Oct 6, 2021
1 parent b81315a commit a7315c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-data-table-component",
"version": "7.4.0",
"version": "7.4.1",
"description": "A simple to use declarative react based data table",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
Expand Down
2 changes: 1 addition & 1 deletion src/DataTable/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function createTheme<T>(name = 'default', customTheme?: T, inherit: Theme
}

// allow tweaking default or light themes if the theme passed in matches
defaultThemes[name] = merge(defaultThemes[inherit], customTheme || {});
defaultThemes[name] = merge(defaultThemes[name], customTheme || {});

return defaultThemes[name];
}

0 comments on commit a7315c8

Please sign in to comment.