mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-22 17:03:17 +08:00
Revert "fix: default cssvarkey only picked when component themeconfig && pare…" (#52515)
This reverts commit 3284536605
.
This commit is contained in:
parent
f61542417e
commit
fd31ca32f3
@ -64,9 +64,7 @@ export default function useTheme(
|
||||
prefix: config?.prefixCls, // Same as prefixCls by default
|
||||
...(typeof parentThemeConfig.cssVar === 'object' ? parentThemeConfig.cssVar : {}),
|
||||
...(typeof themeConfig.cssVar === 'object' ? themeConfig.cssVar : {}),
|
||||
key: (typeof themeConfig.cssVar === 'object' && themeConfig.cssVar?.key)
|
||||
|| (typeof parentThemeConfig.cssVar === 'object' && parentThemeConfig.cssVar?.key)
|
||||
|| cssVarKey,
|
||||
key: (typeof themeConfig.cssVar === 'object' && themeConfig.cssVar?.key) || cssVarKey,
|
||||
};
|
||||
|
||||
// Base token
|
||||
|
Loading…
Reference in New Issue
Block a user