mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-25 15:40:06 +03:00
feature(react-base16-styling): allow theme to be undefined
This commit is contained in:
parent
e2da4e084f
commit
53961df8a4
|
@ -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