Fix key warning of snackbar elements

This commit is contained in:
Igor 2019-11-15 09:54:14 -03:00
parent 136969bf18
commit add3416e11

View File

@ -37,8 +37,8 @@ const SnackbarContainer = () => {
return (
<div key={pos} className={`sb-container sb-${pos}`}>
{items[pos].map(item => (
<div key={item.id}>{renderItem(item)}</div>
{items[pos].map((item, index) => (
<div key={item.id + index}>{renderItem(item)}</div>
))}
</div>
);