Skip to content

Commit

Permalink
Fix synced icon display
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Nov 12, 2023
1 parent b25ff52 commit 3d318fe
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ function BlockPattern( {
blocks={ blocks }
viewportWidth={ viewportWidth }
/>

<HStack className="block-editor-patterns__pattern-details">
{ pattern.id && ! pattern.syncStatus && (
<div className="block-editor-patterns__pattern-icon-wrapper">
<Icon
className="block-editor-patterns__pattern-icon"
icon={ symbol }
/>
</div>
) }
{ pattern.id &&
pattern.syncStatus === 'fully' && (
<div className="block-editor-patterns__pattern-icon-wrapper">
<Icon
className="block-editor-patterns__pattern-icon"
icon={ symbol }
/>
</div>
) }
{ ( ! showTooltip || pattern.id ) && (
<div className="block-editor-block-patterns-list__item-title">
{ pattern.title }
Expand Down

0 comments on commit 3d318fe

Please sign in to comment.