mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
fix: remove useless hashId in Notice (#46415)
This commit is contained in:
parent
e073d99427
commit
a7a3c51ee8
@ -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>,
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -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>,
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user