Skip to content

Commit

Permalink
Code review comments resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
aratidgr8 committed Jul 16, 2024
1 parent 4b7a848 commit cbfb34d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 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' => '9c697528a8c9967a22f4');
<?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' => '694f2cb4d10abd7be591');
20 changes: 12 additions & 8 deletions src/components/SalesChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,27 @@ export function SalesChannel(props){
className="nfd-button nfd-button--primary"
variant="primary"
type="button"
as={ canAccessGlobalCTB ? hasEcomdash ? ecomdashStatus.data.isInstalled ? "a" : "button" : "button" : null }
as={ canAccessGlobalCTB ? ( hasEcomdash ? ( ecomdashStatus.data.isInstalled ? "a" : "button" ) : "button" ) : null }
data-ctb-id={
canAccessGlobalCTB && hasYithExtended && !hasEcomdash
? "3edcf593-dbbe-4994-b5c0-a6718bb819c4"
: null
}
href= { (ecomdashStatus.data.isInstalled && ecomdashSetupStatus && ecomdashStatus?.data?.pluginUrl) || (ecomdashStatus.data.isInstalled && !ecomdashSetupStatus && "https://app.svc.ecomdash.com/ecom/dashboard") }
href= {
(ecomdashStatus.data.isInstalled && ecomdashSetupStatus && ecomdashStatus?.data?.pluginUrl)
||
(ecomdashStatus.data.isInstalled && !ecomdashSetupStatus && "https://app.svc.ecomdash.com/ecom/dashboard")
}
target="_blank"
isLoading={ecomdashStatus.data?.isInstalling}
onClick={hasEcomdash && ecomdashStatus.data.isNeedToInstall ? createPluginInstallAction(
'nfd_slug_ecomdash_wordpress_plugin',
16,
wpModules
) : null}
) : null}
id={ecomdashStatus.data.isInstalled ? "manage-ecomdash" : "install-ecomdash" }
>
{ecomdashStatus.data.isInstalled ? ecomdashSetupStatus ? __("Get Started Now", "wp-module-ecommerce") : __("Go to Ecomdash", "wp-module-ecommerce") : __("Get Started Now", "wp-module-ecommerce") }
{ecomdashStatus.data.isInstalled ? ( ecomdashSetupStatus ? __("Get Started Now", "wp-module-ecommerce") : __("Go to Ecomdash", "wp-module-ecommerce") ) : __("Install Now", "wp-module-ecommerce") }
</Button>
</div>
<Ecomdash className="nfd-flex-none nfd-self-start" />
Expand Down Expand Up @@ -143,7 +147,7 @@ export function SalesChannel(props){
<li className="nfd-flex nfd-flex-row nfd-gap-6 nfd-mb-6">
<EcomdashBulletPoint className="nfd-flex-none" />
<span className="nfd-flex-1 nfd-text-[#4A5567] nfd-leading-5 nfd-font-medium">
{__("Accurately sync kits, multipacks, and components without any headaches.", "wp-module-ecommerce")}
{__("Accurately sync kits, multipacks, and components without any", "wp-module-ecommerce")}
<br />
{__("headaches.", "wp-module-ecommerce")}
</span>
Expand Down Expand Up @@ -199,7 +203,7 @@ export function SalesChannel(props){
<div className="nfd-text-[#000000] nfd-leading-5 nfd-font-medium nfd-mt-5 nfd-mb-11">
{__("Print barcodes for your products that can be", "wp-module-ecommerce")}
<br />
{__("used for labedivng and scanning your", "wp-module-ecommerce")}
{__("used for labeling and scanning your", "wp-module-ecommerce")}
<br />
{__("products", "wp-module-ecommerce")}
</div>
Expand All @@ -212,7 +216,7 @@ export function SalesChannel(props){
</h3>
</div>
<div className="nfd-text-[#000000] nfd-leading-5 nfd-font-medium nfd-mt-5 nfd-mb-11">
{__("Print shipping labels with a preferred carrier right from your ecomdash account and save on postage.", "wp-module-ecommerce")}
{__("Print shipping labels with a preferred carrier", "wp-module-ecommerce")}
<br />
{__("right from your ecomdash account and save", "wp-module-ecommerce")}
<br />
Expand All @@ -227,7 +231,7 @@ export function SalesChannel(props){
</h3>
</div>
<div className="nfd-text-[#000000] nfd-leading-5 nfd-font-medium nfd-mt-5 nfd-mb-11">
{__("Create listing presets to cut down most of the manual data entry needed when creating new listings. ", "wp-module-ecommerce")}
{__("Create listing presets to cut down most of", "wp-module-ecommerce")}
<br />
{__("the manual data entry needed when creating", "wp-module-ecommerce")}
<br />
Expand Down

0 comments on commit cbfb34d

Please sign in to comment.