New source found from dndbeyond.com
This commit is contained in:
+13
-1
@@ -14,9 +14,21 @@ export default function ThemeProvider(_ref) {
|
||||
} = _ref,
|
||||
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
||||
const scopedTheme = themeInput[THEME_ID];
|
||||
let finalTheme = scopedTheme || themeInput;
|
||||
if (typeof themeInput !== 'function') {
|
||||
if (scopedTheme && !scopedTheme.vars) {
|
||||
finalTheme = _extends({}, scopedTheme, {
|
||||
vars: null
|
||||
});
|
||||
} else if (themeInput && !themeInput.vars) {
|
||||
finalTheme = _extends({}, themeInput, {
|
||||
vars: null
|
||||
});
|
||||
}
|
||||
}
|
||||
return /*#__PURE__*/_jsx(SystemThemeProvider, _extends({}, props, {
|
||||
themeId: scopedTheme ? THEME_ID : undefined,
|
||||
theme: scopedTheme || themeInput
|
||||
theme: finalTheme
|
||||
}));
|
||||
}
|
||||
process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = {
|
||||
|
||||
Reference in New Issue
Block a user