Skip to content

Commit 73553de

Browse files
zombieJclaude
andcommitted
refactor: rename variables for clarity in NotificationList
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fe0f5ef commit 73553de

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/NotificationList.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ const NotificationList: React.FC<NotificationListProps> = (props) => {
144144
}
145145
}}
146146
>
147-
{({ config, className, style }, nodeRef) => {
148-
const { key, placement: _placement, ...notificationConfig } = config;
147+
{({ config, className: motionClassName, style: motionStyle }, nodeRef) => {
148+
const { key, placement: itemPlacement, ...notificationConfig } = config;
149149
const strKey = String(key);
150150

151151
return (
@@ -154,7 +154,7 @@ const NotificationList: React.FC<NotificationListProps> = (props) => {
154154
className={clsx(
155155
noticeWrapperCls,
156156
itemPrefixCls,
157-
className,
157+
motionClassName,
158158
classNames?.wrapper,
159159
config.classNames?.wrapper,
160160
)}
@@ -163,7 +163,7 @@ const NotificationList: React.FC<NotificationListProps> = (props) => {
163163
setNodeSize(strKey, node);
164164
}}
165165
style={{
166-
...style,
166+
...motionStyle,
167167
...styles?.wrapper,
168168
...config.styles?.wrapper,
169169
}}

0 commit comments

Comments
 (0)