File tree 2 files changed +25
-1
lines changed
a8c-for-agencies/sections/plugins
my-sites/plugins/plugins-dashboard
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { JetpackLogo } from '@automattic/components' ;
2
+ import { useTranslate } from 'i18n-calypso' ;
3
+ import Banner from 'calypso/components/banner' ;
4
+
5
+ export default function A4APluginsJetpackBanner ( ) {
6
+ const translate = useTranslate ( ) ;
7
+
8
+ return (
9
+ < div className = "a4a-plugins-jetpack-banner-container" >
10
+ < Banner
11
+ title = { translate ( 'Jetpack Required for Plugin Management' ) }
12
+ description = { translate (
13
+ 'To manage plugins, Jetpack must be activated on each site. Your Pressable plan includes Jetpack Complete for free. Activate it to access plugin management in this dashboard.'
14
+ ) }
15
+ icon = { < JetpackLogo size = { 16 } /> }
16
+ className = "plugins__jetpack-banner"
17
+ dismissPreferenceName = "a4a-plugins-jetpack-banner"
18
+ disableCircle
19
+ jetpack
20
+ />
21
+ </ div >
22
+ ) ;
23
+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import pagejs from '@automattic/calypso-router';
4
4
import { Button } from '@automattic/components' ;
5
5
import clsx from 'clsx' ;
6
6
import { useTranslate } from 'i18n-calypso' ;
7
+ import A4APluginsJetpackBanner from 'calypso/a8c-for-agencies/sections/plugins/plugins-jetpack-banner' ;
7
8
import QueryJetpackSitesFeatures from 'calypso/components/data/query-jetpack-sites-features' ;
8
9
import QueryPlugins from 'calypso/components/data/query-plugins' ;
9
10
import QueryProductsList from 'calypso/components/data/query-products-list' ;
@@ -51,7 +52,6 @@ import { PluginComponentProps } from '../plugin-management-v2/types';
51
52
import PluginsListDataViews from '../plugins-list/plugins-list-dataviews' ;
52
53
import type { SiteDetails } from '@automattic/data-stores' ;
53
54
import type { Plugin } from 'calypso/state/plugins/installed/types' ;
54
-
55
55
import './style.scss' ;
56
56
57
57
interface PluginActionCallback {
@@ -342,6 +342,7 @@ const PluginsDashboard = ( {
342
342
< QueryProductsList />
343
343
< LayoutColumn className = "sites-overview" wide >
344
344
< LayoutTop withNavigation = { false } >
345
+ { isA8CForAgencies ( ) && < A4APluginsJetpackBanner /> }
345
346
< LayoutHeader >
346
347
< Title > { translate ( 'Manage Plugins' ) } </ Title >
347
348
{ ! pluginSlug && (
You can’t perform that action at this time.
0 commit comments