mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 01:26:48 +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;
|
: undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const invertTheme = (theme: Theme): Theme => {
|
export const invertTheme = (theme: Theme | undefined): Theme | undefined => {
|
||||||
if (typeof theme === 'string') {
|
if (typeof theme === 'string') {
|
||||||
return `${theme}:inverted`;
|
return `${theme}:inverted`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user