mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-24 07:28:28 +08:00
chore: reverted unnecessary changes.
This commit is contained in:
parent
f9301952f2
commit
6ee4ea5b89
@ -16,14 +16,14 @@ export const genIconStyle = (iconPrefixCls = defaultIconPrefixCls): CSSObject =>
|
|||||||
});
|
});
|
||||||
|
|
||||||
const useResetIconStyle = (iconPrefixCls: string, csp?: CSPConfig) => {
|
const useResetIconStyle = (iconPrefixCls: string, csp?: CSPConfig) => {
|
||||||
const [theme, token, hashId] = useToken();
|
const [theme, token] = useToken();
|
||||||
|
|
||||||
// Generate style for icons
|
// Generate style for icons
|
||||||
return useStyleRegister(
|
return useStyleRegister(
|
||||||
{
|
{
|
||||||
theme,
|
theme,
|
||||||
token,
|
token,
|
||||||
hashId,
|
hashId: '',
|
||||||
path: ['ant-design-icons', iconPrefixCls],
|
path: ['ant-design-icons', iconPrefixCls],
|
||||||
nonce: () => csp?.nonce!,
|
nonce: () => csp?.nonce!,
|
||||||
layer: {
|
layer: {
|
||||||
|
Loading…
Reference in New Issue
Block a user