Remove unneeded CardDivider in CreateNewCampaignModal.
The code is copied from the Channels component, but in CreateNewCampaignModal, we don't need to display the divider, so we can just remove the divider code.
This commit is contained in:
parent
c6dcee426b
commit
e15305b7c3
|
@ -28,10 +28,6 @@
|
|||
padding: $gap 0;
|
||||
}
|
||||
|
||||
.components-card-divider {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.woocommerce-marketing-new-campaign-type {
|
||||
padding: $gap 0;
|
||||
|
||||
|
|
|
@ -2,10 +2,9 @@
|
|||
* External dependencies
|
||||
*/
|
||||
import { __ } from '@wordpress/i18n';
|
||||
import { Fragment, useState } from '@wordpress/element';
|
||||
import { useState } from '@wordpress/element';
|
||||
import {
|
||||
Button,
|
||||
CardDivider,
|
||||
Modal,
|
||||
Icon,
|
||||
Flex,
|
||||
|
@ -139,21 +138,13 @@ export const CreateNewCampaignModal = ( props: CreateCampaignModalProps ) => {
|
|||
</FlexItem>
|
||||
{ ! collapsed && (
|
||||
<FlexItem>
|
||||
{ recommendedChannels.map( ( el, idx ) => {
|
||||
return (
|
||||
<Fragment key={ el.plugin }>
|
||||
<SmartPluginCardBody
|
||||
plugin={ el }
|
||||
onInstalledAndActivated={
|
||||
refetch
|
||||
}
|
||||
/>
|
||||
{ idx !==
|
||||
recommendedChannels.length -
|
||||
1 && <CardDivider /> }
|
||||
</Fragment>
|
||||
);
|
||||
} ) }
|
||||
{ recommendedChannels.map( ( el ) => (
|
||||
<SmartPluginCardBody
|
||||
key={ el.plugin }
|
||||
plugin={ el }
|
||||
onInstalledAndActivated={ refetch }
|
||||
/>
|
||||
) ) }
|
||||
</FlexItem>
|
||||
) }
|
||||
</Flex>
|
||||
|
|
Loading…
Reference in New Issue