Skip to content

Commit

Permalink
Merge pull request #366 from newfold-labs/fix/solutionsBugs
Browse files Browse the repository at this point in the history
bug fixes
  • Loading branch information
circlecube authored Oct 21, 2024
2 parents 6983a44 + 704856f commit 903c965
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
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

0 comments on commit 903c965

Please sign in to comment.