Cleanup the alerts props
Only give the props needed
This commit is contained in:
parent
908f930081
commit
d350b499f2
@ -55,7 +55,10 @@ function Main(props) {
|
||||
router={props.router}
|
||||
torrentCount={props.torrentStore.torrents.length}
|
||||
/>
|
||||
<Alert {...props}/>
|
||||
<Alert
|
||||
alerts={props.alerts}
|
||||
dismissAlert={props.dismissAlert}
|
||||
/>
|
||||
<div className="container-fluid">
|
||||
{React.cloneElement(props.children, props)}
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user