fix(empty-state): Make sure inbox zero /always/ animates

- Animation plays on mount, so always unmount the empty state component instead
  of hiding it.
This commit is contained in:
Juan Tejada 2016-03-25 10:46:32 -07:00
parent c2cf2f4227
commit 8e133a065a

View file

@ -113,6 +113,7 @@ class EmptyListState extends React.Component
@setState(active:false)
render: ->
return <span /> unless @props.visible
ContentComponent = EmptyPerspectiveState
current = FocusedPerspectiveStore.current()
@ -128,7 +129,6 @@ class EmptyListState extends React.Component
classes = classNames
'empty-state': true
'visible': @props.visible
'active': @state.active
<div className={classes}>