mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-21 17:16:42 +03:00
feature(react-base16-styling): allow theme in invertTheme to be undefined (#600)
This commit is contained in:
parent
e2da4e084f
commit
ac6f7435c2
|
@ -266,7 +266,7 @@ export const getBase16Theme = (
|
|||
: undefined;
|
||||
};
|
||||
|
||||
export const invertTheme = (theme: Theme): Theme => {
|
||||
export const invertTheme = (theme: Theme | undefined): Theme | undefined => {
|
||||
if (typeof theme === 'string') {
|
||||
return `${theme}:inverted`;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user