Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aratidgr8 committed Oct 9, 2024
1 parent bcde247 commit d634220
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => 'fe7f305cf40f378a2794');
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-api-fetch', 'wp-data', 'wp-date', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-url'), 'version' => '9c0b6e7c532590756eee');
17 changes: 7 additions & 10 deletions src/components/WPSolutionsBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ export function WPSolutionsBanner() {
currentSolution = purchasedSolution === "WP_SOLUTION_CREATOR" ?
wpSolutionsPromotedPluginsList[0]['WP_SOLUTION_CREATOR'] :
purchasedSolution === "WP_SOLUTION_SERVICE" ?
wpSolutionsPromotedPluginsList[0]['WP_SOLUTION_SERVICE'] :
purchasedSolution === "WP_SOLUTION_COMMERCE" ?
wpSolutionsPromotedPluginsList[0]['WP_SOLUTION_COMMERCE'] : wpSolutionsPromotedPluginsList[0]['none'];
wpSolutionsPromotedPluginsList[0]['WP_SOLUTION_SERVICE'] : wpSolutionsPromotedPluginsList[0]['WP_SOLUTION_COMMERCE'];
let solutionsCards = Object.values(currentSolution);
return(
<Section.Container className="nfd-container">
Expand Down Expand Up @@ -114,7 +112,8 @@ export function WPSolutionsBanner() {
status === "need_to_install" || "installing" ?
<Button
className="nfd-button nfd-button--primary nfd-mt-9 nfd-mt-auto nfd-self-start"
as="button" data-nfd-installer-plugin-slug={slug}
as="button"
data-nfd-installer-plugin-slug={slug}
data-nfd-installer-plugin-provider={details.providerName}
data-nfd-installer-plugin-activate={true}
isLoading={status==="installing"}
Expand All @@ -126,12 +125,10 @@ export function WPSolutionsBanner() {
null
))
:
<div className="nfd-flex nfd-p-6 nfd-text-red-700">
<ExclamationTriangleIcon className="nfd-w-[24px] nfd-h-[24px]" />
<span className="nfd-ml-1.5">
{__("Please try installing later", "wp-module-ecommerce")}
</span>
</div>
<Button className="nfd-button nfd-button--primary nfd-mt-9 nfd-mt-auto nfd-self-start" as="button" disabled={true}>
{ __(`${details['buttonText']}`,"wp-module-ecommerce") }
<RightArrow className="nfd-mt-2.5" />
</Button>
}
</div>)
})
Expand Down

0 comments on commit d634220

Please sign in to comment.