Home Screen: Always show the inbox for temporary gutenberg plugin fix. (https://github.com/woocommerce/woocommerce-admin/pull/5416)

This commit is contained in:
Timmy Crawford 2020-10-16 10:35:38 -07:00 committed by GitHub
parent fbb3e8efd2
commit 1a94f54837
1 changed files with 1 additions and 8 deletions

View File

@ -64,13 +64,6 @@ export const Layout = ( {
const isTaskListEnabled = taskListHidden === false && ! taskListComplete;
const isDashboardShown = ! isTaskListEnabled || ! query.task;
const isInboxPanelEmpty = ( isEmpty ) => {
if ( isBatchUpdating ) {
return;
}
setShowInbox( ! isEmpty );
};
if ( isBatchUpdating && ! showInbox ) {
setShowInbox( true );
}
@ -80,7 +73,7 @@ export const Layout = ( {
<Fragment>
{ showInbox && (
<div className="woocommerce-homescreen-column is-inbox">
<InboxPanel isPanelEmpty={ isInboxPanelEmpty } />
<InboxPanel />
</div>
) }
<div