From 879ed4a00ac0e172fad3dcf5102db3c7d0124c42 Mon Sep 17 00:00:00 2001 From: Mikhaela Tapia Date: Tue, 9 Dec 2025 12:44:53 +0800 Subject: [PATCH] don't show cimo notice if premium --- src/components/image-control2/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/image-control2/index.js b/src/components/image-control2/index.js index b2866c9c2..16f1c0161 100644 --- a/src/components/image-control2/index.js +++ b/src/components/image-control2/index.js @@ -11,7 +11,9 @@ import Button from '../button' * External dependencies */ import classnames from 'classnames' -import { i18n, cimo } from 'stackable' +import { + i18n, cimo, isPro, +} from 'stackable' import { useAttributeName, useBlockAttributesContext, useBlockSetAttributesContext, } from '~stackable/hooks' @@ -88,7 +90,7 @@ const ImageControl = memo( props => { useEffect( () => { // Skip displaying the Cimo notice if the plugin is already activated or the user has chosen to hide the notice - if ( ! cimo || cimo.hideNotice || cimo.status === 'activated' ) { + if ( isPro || ! cimo || cimo.hideNotice || cimo.status === 'activated' ) { return }