Skip to content

Commit 1e95f4c

Browse files
feat: update default selected offer tab for bundles to use "overview"… (#1175)
1 parent d6bcfcf commit 1e95f4c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/pages/common/OfferFullDescription.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
ExternalOfferFullDescription,
3-
ExternalOfferFullDescriptionProps
3+
ExternalOfferFullDescriptionProps,
4+
isBundle
45
} from "@bosonprotocol/react-kit";
56
import { useConfigContext } from "components/config/ConfigContext";
67
import { MODAL_TYPES } from "components/modal/ModalComponents";
@@ -56,7 +57,11 @@ export const OfferFullDescription: React.FC<OfferFullDescriptionProps> = (
5657
includeOverviewTab
5758
imagesToShow={3}
5859
includeGeneralProductDataTab={false}
59-
defaultSelectedOfferTabsIdTab="physical-product-data"
60+
defaultSelectedOfferTabsIdTab={
61+
props.offer && isBundle(props.offer)
62+
? "overview"
63+
: "physical-product-data"
64+
} // LLX: if bundle, use "overview" instead
6065
withFullViewportWidth={true}
6166
onExchangePolicyClick={({ exchangePolicyCheckResult }) =>
6267
showModal(MODAL_TYPES.EXCHANGE_POLICY_DETAILS, {

0 commit comments

Comments
 (0)