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}
|
router={props.router}
|
||||||
torrentCount={props.torrentStore.torrents.length}
|
torrentCount={props.torrentStore.torrents.length}
|
||||||
/>
|
/>
|
||||||
<Alert {...props}/>
|
<Alert
|
||||||
|
alerts={props.alerts}
|
||||||
|
dismissAlert={props.dismissAlert}
|
||||||
|
/>
|
||||||
<div className="container-fluid">
|
<div className="container-fluid">
|
||||||
{React.cloneElement(props.children, props)}
|
{React.cloneElement(props.children, props)}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user