Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fixes #366

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/WPSolutionsBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function WPSolutionsBanner() {
<div className={classNames('nfd-grid nfd-grid-flow-row-dense nfd-grid-cols-3 nfd-grid-rows-2 nfd-gap-6')}>
{
solutionsCards?.map((details, index) => {
return (<div key={`card-${index}`} className={classNames("max-[950px]:nfd-col-span-3", "nfd-flex nfd-flex-col nfd-bg-[#F1F5F7] nfd-p-6 nfd-rounded-lg nfd-border nfd-border-[#E2E8F0] nfd-box-content", `${ index === 0 || index === 3 ? 'nfd-col-span-1': 'nfd-col-span-2'}`)}>
return (<div key={`card-${index}`} className={classNames("max-[950px]:nfd-col-span-3", "nfd-flex nfd-flex-col nfd-bg-[#F1F5F7] nfd-p-6 nfd-rounded-lg nfd-border nfd-border-[#E2E8F0] nfd-box-content", `${ index === 0 || index === 3 ? 'nfd-col-span-2': 'nfd-col-span-1'}`)}>
<h2 className="nfd-text-[#0F172A] nfd-text-lg nfd-leading-5 nfd-font-semibold nfd-mb-4">
{ __(`${details['title']}`,"wp-module-ecommerce") }
</h2>
Expand Down Expand Up @@ -171,7 +171,7 @@ export function WPSolutionsBanner() {
))
:
//For type not plugin
(<Button key={`btn-${index}`} className="nfd-button nfd-button--primary nfd-mt-9 nfd-mt-auto nfd-self-start" as="a" href={details.url+"89538934954"}>
(<Button key={`btn-${index}`} className="nfd-button nfd-button--primary nfd-mt-9 nfd-mt-auto nfd-self-start" as="a" href={details.url}>
{ __(`${details['buttonText']}`,"wp-module-ecommerce") }
<RightArrow className="nfd-mt-2.5" />
</Button>)
Expand Down
10 changes: 5 additions & 5 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const wpSolutionsPromotedPluginsList = [
description: "Grant your affiliates earnings each time someone purchases from their link.",
buttonText: "Create an Affiliate Program",
name: "Affiliate Programs",
plsSlug: "yith-woocommerce-affiliates-premium",
plsSlug: "yith-woocommerce-affiliates",
plsProviderName: "yith",
download: null,
basename: "yith-woocommerce-affiliates-premium/init.php",
Expand All @@ -99,7 +99,7 @@ export const wpSolutionsPromotedPluginsList = [
description: "Manage the renting or booking of services and items that you offer your customers.",
buttonText: "Setup Bookings",
name: "Bookings & Appointments",
plsSlug: "yith-woocommerce-booking-premium",
plsSlug: "yith-woocommerce-booking",
plsProviderName: "yith",
download: null,
basename: "yith-woocommerce-booking-premium/init.php",
Expand Down Expand Up @@ -132,7 +132,7 @@ export const wpSolutionsPromotedPluginsList = [
description: "Reward customer loyalty with an effective points program.",
buttonText: "Configure Points & Rewards",
name: "Loyalty Program",
plsSlug: "yith-woocommerce-points-and-rewards-premium",
plsSlug: "yith-woocommerce-points-and-rewards",
plsProviderName: "yith",
download: null,
basename: "yith-woocommerce-points-and-rewards-premium/init.php",
Expand All @@ -146,7 +146,7 @@ export const wpSolutionsPromotedPluginsList = [
description: "Let customers add products to lists and share them with family and friends.",
buttonText: "Setup Wishilsts",
name: "Wishlists",
plsSlug: "yith-woocommerce-wishlist-premium",
plsSlug: "yith-woocommerce-wishlist",
plsProviderName: "yith",
download: null,
basename: "yith-woocommerce-wishlist-premium/init.php",
Expand All @@ -157,7 +157,7 @@ export const wpSolutionsPromotedPluginsList = [
description: "Get positive product reviews and use social proof to drive more sales.",
buttonText: "Enable Product Reviews",
name: "Advanced Reviews",
plsSlug: "yith-woocommerce-advanced-reviews-premium",
plsSlug: "yith-woocommerce-advanced-reviews",
plsProviderName: "yith",
download: null,
basename: "yith-woocommerce-advanced-reviews-premium/init.php",
Expand Down