28 lines
769 B
CoffeeScript
28 lines
769 B
CoffeeScript
context = window
|
|
|
|
ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;
|
|
|
|
BroadcastHolder = React.createClass(
|
|
{
|
|
displayName: 'Broadcast Notification Holder',
|
|
|
|
mixins: [Reflux.connect(context.JK.Stores.Broadcast, 'notification')]
|
|
|
|
render: ->
|
|
notification = []
|
|
if this.state.notification
|
|
notification.push(`<Broadcast key={this.state.notification.id} notification={this.state.notification}/>`)
|
|
|
|
|
|
`<div id="broadcast-notification-holder" className="broadcast-notification-holder" >
|
|
<ReactCSSTransitionGroup transitionName="bn-slidedown">
|
|
{notification}
|
|
</ReactCSSTransitionGroup>
|
|
</div>`
|
|
|
|
|
|
});
|
|
|
|
context.JK.Components.BroadcastHolder = BroadcastHolder
|
|
context.BroadcastHolder = BroadcastHolder
|