mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 03:54:28 +08:00
refactor: use defaultIconPrefixCls instead of string
This commit is contained in:
parent
8a82e55197
commit
f9301952f2
@ -1,11 +1,12 @@
|
||||
import { useStyleRegister } from '@ant-design/cssinjs';
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
|
||||
import { defaultIconPrefixCls } from '../../config-provider';
|
||||
import type { CSPConfig } from '../../config-provider';
|
||||
import { resetIcon } from '../../style';
|
||||
import useToken from '../useToken';
|
||||
|
||||
export const genIconStyle = (iconPrefixCls = 'anticon'): CSSObject => ({
|
||||
export const genIconStyle = (iconPrefixCls = defaultIconPrefixCls): CSSObject => ({
|
||||
[`.${iconPrefixCls}`]: {
|
||||
...resetIcon(),
|
||||
[`.${iconPrefixCls} .${iconPrefixCls}-icon`]: {
|
||||
|
Loading…
Reference in New Issue
Block a user