mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
🩹 Fix React warning about missing key-props
This commit is contained in:
parent
d547a3b218
commit
34ccd47bbc
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ const Modal = ( { method, setModalIsVisible, onSave } ) => {
|
|||
switch ( field.type ) {
|
||||
case 'text':
|
||||
return (
|
||||
<div className="ppcp-r-modal__field-row">
|
||||
<div key={ key } className="ppcp-r-modal__field-row">
|
||||
<TextControl
|
||||
__nextHasNoMarginBottom
|
||||
className="ppcp-r-vertical-text-control"
|
||||
|
@ -82,7 +82,7 @@ const Modal = ( { method, setModalIsVisible, onSave } ) => {
|
|||
|
||||
case 'toggle':
|
||||
return (
|
||||
<div className="ppcp-r-modal__field-row">
|
||||
<div key={ key } className="ppcp-r-modal__field-row">
|
||||
<ToggleControl
|
||||
__nextHasNoMarginBottom
|
||||
label={ field.label }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue