Each notification component gets a unique ID

This commit is contained in:
Joshua Sigona 2021-08-28 20:08:51 +09:00
parent 9d009ae0c0
commit a86c403524

View File

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