Skip to content

Commit 6ee8359

Browse files
authored
Merge pull request #2459 from Codeinwp/feat/tc-connection
chore: change Otter Patterns button order & Premium Designs appearance
2 parents 1905666 + 82668ee commit 6ee8359

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/blocks/plugins/patterns-library/library.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
useState
2929
} from '@wordpress/element';
3030

31-
import { grid } from '@wordpress/icons';
31+
import { external, grid, Icon } from '@wordpress/icons';
3232

3333
/**
3434
* Internal dependencies.
@@ -213,13 +213,24 @@ const Library = ({
213213
{ __( 'My Favorites', 'otter-blocks' ) }
214214
</Button>
215215

216+
{tcCategories.length < 1 && (
217+
<Button
218+
icon="open-folder"
219+
isPressed={ 'cloud-empty' === selectedCategory }
220+
onClick={ () => setSelectedCategory( CLOUD_EMPTY_CATEGORY ) }
221+
>
222+
{ __( 'Cloud Libraries', 'otter-blocks' ) }
223+
</Button>
224+
) }
225+
216226
{ ( ! Boolean( window.themeisleGutenberg.hasPro ) ) && (
217227
<Button
218228
icon="lock"
219229
href="https://themeisle.com/plugins/otter-blocks/patterns/"
220230
target="_blank"
221231
>
222232
{ __( 'Premium Designs', 'otter-blocks' ) }
233+
<Icon icon={external} size={15} />
223234
</Button>
224235
) }
225236

@@ -244,15 +255,6 @@ const Library = ({
244255
</ul>
245256
</>
246257
)}
247-
{tcCategories.length < 1 && (
248-
<Button
249-
icon="lock"
250-
isPressed={ 'cloud-empty' === selectedCategory }
251-
onClick={ () => setSelectedCategory( CLOUD_EMPTY_CATEGORY ) }
252-
>
253-
{ __( 'Cloud Libraries', 'otter-blocks' ) }
254-
</Button>
255-
) }
256258

257259
<p className="o-library__modal__sidebar__heading">
258260
{ __( 'Categories', 'otter-blocks' ) }

0 commit comments

Comments
 (0)