From 82668ee6a9fc94d2b946c8d74ae511c45ee4c5d6 Mon Sep 17 00:00:00 2001 From: abaicus Date: Wed, 27 Nov 2024 17:08:21 +0200 Subject: [PATCH] chore: change Otter Patterns button order & Premium Designs appearance [closes #2456] --- .../plugins/patterns-library/library.js | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/blocks/plugins/patterns-library/library.js b/src/blocks/plugins/patterns-library/library.js index 0fe9c7272..70722ec3e 100644 --- a/src/blocks/plugins/patterns-library/library.js +++ b/src/blocks/plugins/patterns-library/library.js @@ -28,7 +28,7 @@ import { useState } from '@wordpress/element'; -import { grid } from '@wordpress/icons'; +import { external, grid, Icon } from '@wordpress/icons'; /** * Internal dependencies. @@ -213,6 +213,16 @@ const Library = ({ { __( 'My Favorites', 'otter-blocks' ) } + {tcCategories.length < 1 && ( + + ) } + { ( ! Boolean( window.themeisleGutenberg.hasPro ) ) && ( ) } @@ -244,15 +255,6 @@ const Library = ({ )} - {tcCategories.length < 1 && ( - - ) }

{ __( 'Categories', 'otter-blocks' ) }