mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-09 09:38: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)
|
||||
|
||||
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}>
|
||||
|
|
Loading…
Reference in a new issue