Fix build errors after merging from trunk.
This commit is contained in:
parent
186f1fb850
commit
59c94ce24a
|
@ -11,7 +11,7 @@ import {
|
|||
useCampaignTypes,
|
||||
useRecommendedChannels,
|
||||
useRegisteredChannels,
|
||||
useInstalledPlugins,
|
||||
useInstalledPluginsWithoutChannels,
|
||||
} from '~/marketing/hooks';
|
||||
import { CreateNewCampaignModal } from './CreateNewCampaignModal';
|
||||
|
||||
|
@ -29,7 +29,7 @@ jest.mock( '~/marketing/hooks', () => ( {
|
|||
useCampaignTypes: jest.fn(),
|
||||
useRecommendedChannels: jest.fn(),
|
||||
useRegisteredChannels: jest.fn(),
|
||||
useInstalledPlugins: jest.fn(),
|
||||
useInstalledPluginsWithoutChannels: jest.fn(),
|
||||
} ) );
|
||||
|
||||
const google = {
|
||||
|
@ -83,7 +83,7 @@ describe( 'CreateNewCampaignModal component', () => {
|
|||
( useRegisteredChannels as jest.Mock ).mockReturnValue( {
|
||||
refetch: jest.fn(),
|
||||
} );
|
||||
( useInstalledPlugins as jest.Mock ).mockReturnValue( {
|
||||
( useInstalledPluginsWithoutChannels as jest.Mock ).mockReturnValue( {
|
||||
loadInstalledPluginsAfterActivation: jest.fn(),
|
||||
} );
|
||||
} );
|
||||
|
|
|
@ -21,7 +21,7 @@ import {
|
|||
useRecommendedChannels,
|
||||
useCampaignTypes,
|
||||
useRegisteredChannels,
|
||||
useInstalledPlugins,
|
||||
useInstalledPluginsWithoutChannels,
|
||||
} from '~/marketing/hooks';
|
||||
import { SmartPluginCardBody } from '~/marketing/components';
|
||||
import './CreateNewCampaignModal.scss';
|
||||
|
@ -44,7 +44,8 @@ export const CreateNewCampaignModal = ( props: CreateCampaignModalProps ) => {
|
|||
useCampaignTypes();
|
||||
const { refetch: refetchRegisteredChannels } = useRegisteredChannels();
|
||||
const { data: recommendedChannels } = useRecommendedChannels();
|
||||
const { loadInstalledPluginsAfterActivation } = useInstalledPlugins();
|
||||
const { loadInstalledPluginsAfterActivation } =
|
||||
useInstalledPluginsWithoutChannels();
|
||||
|
||||
const onInstalledAndActivated = ( pluginSlug: string ) => {
|
||||
refetchCampaignTypes();
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
useRegisteredChannels,
|
||||
useRecommendedChannels,
|
||||
useCampaignTypes,
|
||||
useInstalledPlugins,
|
||||
useInstalledPluginsWithoutChannels,
|
||||
} from '~/marketing/hooks';
|
||||
import { getAdminSetting } from '~/utils/admin-settings';
|
||||
import { IntroductionBanner } from './IntroductionBanner';
|
||||
|
@ -46,7 +46,8 @@ export const MarketingOverviewMultichannel: React.FC = () => {
|
|||
} = useRegisteredChannels();
|
||||
const { loading: loadingRecommended, data: dataRecommended } =
|
||||
useRecommendedChannels();
|
||||
const { loadInstalledPluginsAfterActivation } = useInstalledPlugins();
|
||||
const { loadInstalledPluginsAfterActivation } =
|
||||
useInstalledPluginsWithoutChannels();
|
||||
const { currentUserCan } = useUser();
|
||||
const channelsRef = useRef< ChannelsRef >( null );
|
||||
|
||||
|
|
Loading…
Reference in New Issue