1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 1x 1x | import React from 'react'; import AlertContainer from 'react-alert'; export default class AlertsWrapper extends React.PureComponent { render() { return ( <AlertContainer ref={ref => { global.notify = ref; }} offset={14} position="top right" theme="dark" time={5000} transition="fade" />); } } |