added prop key, made update form
This commit is contained in:
@@ -79,7 +79,7 @@ function ProfileTable({
|
||||
return (
|
||||
<ProfileTableItem
|
||||
key={data.label}
|
||||
id={data.label}
|
||||
id={data.key}
|
||||
image={defaultData.image}
|
||||
value={data.value.charAt(0).toUpperCase()+data.value.slice(1)}
|
||||
property={data.label}
|
||||
@@ -87,7 +87,7 @@ function ProfileTable({
|
||||
transactions={defaultData.transactions}
|
||||
avatars={defaultData.avatars}
|
||||
handleClick={handleClick}
|
||||
isChecked={isCheck.includes(data.label)}
|
||||
isChecked={isCheck.includes(data.key)}
|
||||
/>
|
||||
)
|
||||
})}
|
||||
@@ -105,7 +105,7 @@ function ProfileTable({
|
||||
return (
|
||||
<ProfileTableItem
|
||||
key={data.label}
|
||||
id={data.label}
|
||||
id={data.key}
|
||||
image={defaultData.image}
|
||||
value={data.value.charAt(0).toUpperCase()+data.value.slice(1)}
|
||||
property={data.label}
|
||||
@@ -113,7 +113,7 @@ function ProfileTable({
|
||||
transactions={defaultData.transactions}
|
||||
avatars={defaultData.avatars}
|
||||
handleClick={handleClick}
|
||||
isChecked={isCheck.includes(data.label)}
|
||||
isChecked={isCheck.includes(data.key)}
|
||||
/>
|
||||
)
|
||||
})}
|
||||
@@ -130,8 +130,8 @@ function ProfileTable({
|
||||
{otherData.map(data => {
|
||||
return (
|
||||
<ProfileTableItem
|
||||
key={data.label}
|
||||
id={data.label}
|
||||
key={data.key}
|
||||
id={data.key}
|
||||
image={defaultData.image}
|
||||
value={data.value}
|
||||
property={data.label}
|
||||
@@ -139,7 +139,7 @@ function ProfileTable({
|
||||
transactions={defaultData.transactions}
|
||||
avatars={defaultData.avatars}
|
||||
handleClick={handleClick}
|
||||
isChecked={isCheck.includes(data.label)}
|
||||
isChecked={isCheck.includes(data.key)}
|
||||
/>
|
||||
)
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user