Allow already installed marketing extensions to be activated (https://github.com/woocommerce/woocommerce-admin/pull/7740)

* Allow already installed marketing extensions to be activated

* Add installAndActivate to old task list

* Add changelog entry
This commit is contained in:
Joshua T Flowers 2021-10-04 13:11:00 -04:00 committed by GitHub
parent 1d00a09ec3
commit 5b553ff2ea
5 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: Fix
Allow already installed marketing extensions to be activated #7740

View File

@ -12,7 +12,7 @@ import './PluginList.scss';
export type PluginListProps = {
currentPlugin?: string | null;
key?: string;
installAndActivate?: ( slug: string ) => void;
installAndActivate: ( slug: string ) => void;
plugins?: PluginProps[];
title?: string;
};

View File

@ -190,6 +190,7 @@ export const Marketing: React.FC< MarketingProps > = ( {
</CardHeader>
<PluginList
currentPlugin={ currentPlugin }
installAndActivate={ installAndActivate }
plugins={ installedExtensions }
/>
</Card>

View File

@ -12,7 +12,7 @@ import './PluginList.scss';
export type PluginListProps = {
currentPlugin?: string | null;
key?: string;
installAndActivate?: ( slug: string ) => void;
installAndActivate: ( slug: string ) => void;
plugins?: PluginProps[];
title?: string;
};

View File

@ -208,6 +208,7 @@ const Marketing: React.FC< MarketingProps > = ( { onComplete } ) => {
</CardHeader>
<PluginList
currentPlugin={ currentPlugin }
installAndActivate={ installAndActivate }
plugins={ installedExtensions }
/>
</Card>