mirror of
https://github.com/strapi/strapi.git
synced 2025-08-06 07:50:02 +00:00
30 lines
601 B
JavaScript
30 lines
601 B
JavaScript
![]() |
/*
|
||
|
*
|
||
|
* NotificationProvider
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
import React from 'react';
|
||
|
import { connect } from 'react-redux';
|
||
|
import selectNotificationProvider from './selectors';
|
||
|
|
||
|
export class NotificationProvider extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
||
|
render() {
|
||
|
return (
|
||
|
<div>
|
||
|
{React.Children.only(this.props.children)}
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const mapStateToProps = selectNotificationProvider();
|
||
|
|
||
|
function mapDispatchToProps(dispatch) {
|
||
|
return {
|
||
|
dispatch,
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export default connect(mapStateToProps, mapDispatchToProps)(NotificationProvider);
|