mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-24 17:10:07 +08:00
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:
parent
c2cf2f4227
commit
8e133a065a
1 changed files with 1 additions and 1 deletions
|
@ -113,6 +113,7 @@ class EmptyListState extends React.Component
|
||||||
@setState(active:false)
|
@setState(active:false)
|
||||||
|
|
||||||
render: ->
|
render: ->
|
||||||
|
return <span /> unless @props.visible
|
||||||
ContentComponent = EmptyPerspectiveState
|
ContentComponent = EmptyPerspectiveState
|
||||||
current = FocusedPerspectiveStore.current()
|
current = FocusedPerspectiveStore.current()
|
||||||
|
|
||||||
|
@ -128,7 +129,6 @@ class EmptyListState extends React.Component
|
||||||
|
|
||||||
classes = classNames
|
classes = classNames
|
||||||
'empty-state': true
|
'empty-state': true
|
||||||
'visible': @props.visible
|
|
||||||
'active': @state.active
|
'active': @state.active
|
||||||
|
|
||||||
<div className={classes}>
|
<div className={classes}>
|
||||||
|
|
Loading…
Reference in a new issue