Cleanup the alerts props

Only give the props needed
This commit is contained in:
Grégoire Delattre 2017-05-21 17:33:05 +02:00
parent 908f930081
commit d350b499f2

View File

@ -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>