mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
react-base16-styling
This commit is contained in:
parent
6e5985693a
commit
fd04c01b7f
|
@ -126,7 +126,7 @@ const mergeStylings = (
|
||||||
): StylingConfig => {
|
): StylingConfig => {
|
||||||
const keys = Object.keys(defaultStylings);
|
const keys = Object.keys(defaultStylings);
|
||||||
for (const key in customStylings) {
|
for (const key in customStylings) {
|
||||||
if (keys.indexOf(key) === -1) keys.push(key);
|
if (!keys.includes(key)) keys.push(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
return keys.reduce(
|
return keys.reduce(
|
||||||
|
@ -241,7 +241,7 @@ export const createStyling: CurriedFunction3<
|
||||||
|
|
||||||
const customStyling = Object.keys(themeOrStyling).reduce(
|
const customStyling = Object.keys(themeOrStyling).reduce(
|
||||||
(s, key) =>
|
(s, key) =>
|
||||||
BASE16_KEYS.indexOf(key) === -1
|
!BASE16_KEYS.includes(key)
|
||||||
? ((s[key] = (themeOrStyling as StylingConfig)[key]), s)
|
? ((s[key] = (themeOrStyling as StylingConfig)[key]), s)
|
||||||
: s,
|
: s,
|
||||||
{} as StylingConfig,
|
{} as StylingConfig,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user