chore: update ant-design dependencies and add new icon types
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import { useToken } from '../../theme/internal';
|
||||
/**
|
||||
* This hook is only for cssVar to add root className for components.
|
||||
* If root ClassName is needed, this hook could be refactored with `-root`
|
||||
* @param prefixCls
|
||||
*/
|
||||
const useCSSVarCls = prefixCls => {
|
||||
const [,,,, cssVar] = useToken();
|
||||
return cssVar ? `${prefixCls}-css-var` : '';
|
||||
};
|
||||
export default useCSSVarCls;
|
||||
Reference in New Issue
Block a user