Fix a React warning in test that the key prop wasn't assigned in List (https://github.com/woocommerce/woocommerce-admin/pull/4808)

This commit is contained in:
Sam Seay 2020-07-15 14:35:44 +12:00 committed by GitHub
parent 480362ca29
commit 88ab1cf285
1 changed files with 2 additions and 3 deletions

View File

@ -49,7 +49,6 @@ class List extends Component {
className: itemClasses,
content,
href,
key,
listItemTag,
onClick,
target,
@ -81,11 +80,11 @@ class List extends Component {
return (
<CSSTransition
key={ key }
key={ i }
timeout={ 500 }
classNames="woocommerce-list__item"
>
<li className={ itemClassName } key={ i }>
<li className={ itemClassName }>
<InnerTag { ...innerTagProps }>
{ before && (
<div className="woocommerce-list__item-before">