Each notification component gets a unique ID
This commit is contained in:
parent
9d009ae0c0
commit
a86c403524
@ -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…
x
Reference in New Issue
Block a user