Each notification component gets a unique ID

main
Joshua Sigona 3 years ago
parent 9d009ae0c0
commit a86c403524
  1. 2
      src/App.js

@ -320,7 +320,7 @@ function App() {
<div style={{pointerEvents:"none",position:"fixed",top:"0px",left:"0px",width:"100%",height:"100%"}}> <div style={{pointerEvents:"none",position:"fixed",top:"0px",left:"0px",width:"100%",height:"100%"}}>
<ToastContainer position="bottom-end"> <ToastContainer position="bottom-end">
{notifications.map((not)=>{ {notifications.map((not)=>{
return <Notification not={not}/> return <Notification key={not.id} not={not}/>
})} })}
</ToastContainer> </ToastContainer>
</div> </div>

Loading…
Cancel
Save