Skip to content

Commit 879ed4a

Browse files
committed
don't show cimo notice if premium
1 parent 5e6fb4d commit 879ed4a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/image-control2/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import Button from '../button'
1111
* External dependencies
1212
*/
1313
import classnames from 'classnames'
14-
import { i18n, cimo } from 'stackable'
14+
import {
15+
i18n, cimo, isPro,
16+
} from 'stackable'
1517
import {
1618
useAttributeName, useBlockAttributesContext, useBlockSetAttributesContext,
1719
} from '~stackable/hooks'
@@ -88,7 +90,7 @@ const ImageControl = memo( props => {
8890

8991
useEffect( () => {
9092
// Skip displaying the Cimo notice if the plugin is already activated or the user has chosen to hide the notice
91-
if ( ! cimo || cimo.hideNotice || cimo.status === 'activated' ) {
93+
if ( isPro || ! cimo || cimo.hideNotice || cimo.status === 'activated' ) {
9294
return
9395
}
9496

0 commit comments

Comments
 (0)