Skip to content

Commit

Permalink
Add Help Center section in the overview tab
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldudzic committed Dec 18, 2024
1 parent ba7fbb0 commit 7a223de
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
}

// Todo List and Feature Items
.ppcp-r-tab-overview-todo {
margin: 0 0 48px 0;
}

.ppcp-r-todo-item {
position: relative;
display: flex;
Expand Down Expand Up @@ -231,6 +227,10 @@
}

// Settings Card and Block Styles
.ppcp-r-settings-card {
margin: 0 0 48px 0;
}

.ppcp-r-settings-card__content {
> .ppcp-r-settings-block {
&:not(:last-child) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ const TabOverview = () => {
className="ppcp-r-tab-overview-features"
title={ __( 'Features', 'woocommerce-paypal-payments' ) }
description={
<div>
<>
<p>
{ __(
'Enable additional features',
'Enable additional features and capabilities on your WooCommerce store.',
'woocommerce-paypal-payments'
) }
</p>
<p>
{ __(
'Click Refresh',
'Click Refresh to update your current features after making changes.',
'woocommerce-paypal-payments'
) }
</p>
Expand All @@ -101,7 +101,7 @@ const TabOverview = () => {
'woocommerce-paypal-payments'
) }
</Button>
</div>
</>
}
contentItems={ features.map( ( feature ) => (
<FeatureSettingsBlock
Expand All @@ -125,6 +125,60 @@ const TabOverview = () => {
/>
) ) }
/>

<SettingsCard
className="ppcp-r-tab-overview-help"
title={ __( 'Help Center', 'woocommerce-paypal-payments' ) }
description={ __(
'Access detailed guides and responsive support to streamline setup and enhance your experience.',
'woocommerce-paypal-payments'
) }
contentItems={ [
<FeatureSettingsBlock
key="documentation"
title={ __(
'Documentation',
'woocommerce-paypal-payments'
) }
description={ __(
'Find detailed guides and resources to help you set up, manage, and optimize your PayPal integration.',
'woocommerce-paypal-payments'
) }
actionProps={ {
buttons: [
{
type: 'tertiary',
text: __(
'View full documentation',
'woocommerce-paypal-payments'
),
url: '#',
},
],
} }
/>,
<FeatureSettingsBlock
key="support"
title={ __( 'Support', 'woocommerce-paypal-payments' ) }
description={ __(
'Need help? Access troubleshooting tips or contact our support team for personalized assistance.',
'woocommerce-paypal-payments'
) }
actionProps={ {
buttons: [
{
type: 'tertiary',
text: __(
'View support options',
'woocommerce-paypal-payments'
),
url: '#',
},
],
} }
/>,
] }
/>
</div>
);
};
Expand Down

0 comments on commit 7a223de

Please sign in to comment.