Skip to content

Commit

Permalink
Showing Gift and Booking Cards only when the corresponding plugins ar…
Browse files Browse the repository at this point in the history
…e Active (#46)

* Modified address details sent while country with no state is selected

* Update StoreAddress.js

* Update StoreAddress.js

* Showing Gift and Booking Cards only when the corresponding plugins are Active

* Update StoreAddress.scss

* Update StoreAddress.scss

Co-authored-by: Ashritha <[email protected]>
  • Loading branch information
ashrithapradeep and Ashritha authored Dec 6, 2022
1 parent 8bdeece commit e61c994
Show file tree
Hide file tree
Showing 3 changed files with 4 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('react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'e64a96a1c2453107b2bf');
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '0b6dd263ab6019cd56d0');
6 changes: 3 additions & 3 deletions src/configs/ManageProducts.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const ManageProducts = (plugins) => [
{
Card: StandardCard,
shouldRender: (state) =>
plugins?.status.yith_woocommerce_gift_cards_panel !== "Not Installed" &&
plugins?.status.yith_woocommerce_gift_cards_panel === "Active" &&
state?.hasUsedPlugin === false,
title: "create_gift_card",
assets: (state) => ({ Icon: GiftCardIcon }),
Expand Down Expand Up @@ -110,7 +110,7 @@ const ManageProducts = (plugins) => [
{
Card: MultipleActionsCard,
shouldRender: (state) =>
plugins?.status.yith_woocommerce_gift_cards_panel !== "Not Installed" &&
plugins?.status.yith_woocommerce_gift_cards_panel === "Active" &&
state?.hasAddedGiftCards === true,
title: "manage_gift_card",
assets: (state) => ({ Icon: GiftCardIcon }),
Expand Down Expand Up @@ -147,7 +147,7 @@ const ManageProducts = (plugins) => [
{
Card: StandardCard,
shouldRender: () =>
plugins?.status.nfd_slug_yith_woocommerce_booking !== "Not Installed",
plugins?.status.nfd_slug_yith_woocommerce_booking === "Active",
title: "nfd_slug_yith_woocommerce_booking",
assets: (state) => ({ Icon: BookingIcon }),
text: (state) => ({
Expand Down
7 changes: 0 additions & 7 deletions src/sections/StoreAddress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ div.nfd-ecommerce-store-address-form {
}
}

@media (max-width: 960px) {
input,
select {
width: 300px;
}
}

@media (max-width: 780px) {
grid-template-columns: auto;
padding: 0 24px 76px;
Expand Down

0 comments on commit e61c994

Please sign in to comment.