chore: reverted unnecessary changes.

This commit is contained in:
🏎️ Yumo 2024-12-06 01:31:54 +08:00
parent f9301952f2
commit 6ee4ea5b89

View File

@ -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: {