fix: remove useless hashId in Notice (#46415)

This commit is contained in:
MadCcc 2023-12-13 11:04:41 +08:00 committed by GitHub
parent e073d99427
commit a7a3c51ee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -38,9 +38,7 @@ interface HolderRef extends NotificationAPI {
const Wrapper: FC<PropsWithChildren<{ prefixCls: string }>> = ({ children, prefixCls }) => {
const [wrapCSSVar, hashId] = useStyle(prefixCls);
return wrapCSSVar(
<NotificationProvider classNames={{ list: hashId, notice: hashId }}>
{children}
</NotificationProvider>,
<NotificationProvider classNames={{ list: hashId }}>{children}</NotificationProvider>,
);
};

View File

@ -37,9 +37,7 @@ interface HolderRef extends NotificationAPI {
const Wrapper: FC<PropsWithChildren<{ prefixCls: string }>> = ({ children, prefixCls }) => {
const [wrapCSSVar, hashId] = useStyle(prefixCls);
return wrapCSSVar(
<NotificationProvider classNames={{ list: hashId, notice: hashId }}>
{children}
</NotificationProvider>,
<NotificationProvider classNames={{ list: hashId }}>{children}</NotificationProvider>,
);
};