Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…lfinance into feature/homepage-bugfixes
  • Loading branch information
Vaibhav sasulkar committed Jul 3, 2024
2 parents 0211be5 + fa0ef4a commit 9143a62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 2 additions & 7 deletions blocks/tab-container/tab-container.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import { generateDetailedTeaserDOM } from '../detailed-teaser/detailed-teaser.js';
import { generateTeaserDOM } from '../teaser/teaser.js';
import { generateTabName } from '../tab-name/tab-name.js';

const carouselContainerMapping = {}
carouselContainerMapping["detailed-teaser"] = generateDetailedTeaserDOM;
// carouselContainerMapping["teaser"] = generateDetailedTeaserDOM;
carouselContainerMapping["tab-name"] = function (block) {
generateTabName(block.children[1]);
};
carouselContainerMapping["ss-teaser"] = generateDetailedTeaserDOM;

export default function decorate(block) {
const tabid = block.children[0].innerText.trim();
Expand Down Expand Up @@ -37,8 +33,7 @@ export default function decorate(block) {
generateOtherComponent = carouselContainerMapping[className];
}
})
// generateOtherComponent = generateOtherComponent ? generateOtherComponent([imagebg, image, ...rest], classes) : generateTeaserDOM([imagebg, image, ...rest], classes);
generateOtherComponent = generateOtherComponent ? generateOtherComponent(block) : generateTeaserDOM([imagebg, image, ...rest], classes);
generateOtherComponent = generateOtherComponent ? generateOtherComponent([imagebg, image, ...rest], classes) : generateTeaserDOM([imagebg, image, ...rest], classes);
panel.textContent = '';
panel.classList.add(blockType, 'block');
classes.forEach((c) => panel.classList.add(c.trim()));
Expand Down
6 changes: 5 additions & 1 deletion paths.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"mappings": [
"/content/piramalfinance-eds/:/",
"/content/piramalfinance-eds/redirects:/redirects.json",
"/content/piramalfinance-eds/happy-customer.json:/happy-customer.json",
"/content/piramalfinance-eds/cust-testimonial:/cust-testimonial.json",
"/content/piramalfinance-eds/home-emi-calc:/home-emi-calc.json",
"/content/piramalfinance-eds/home-eligi-calc:/home-eligi-calc.json",
"/content/piramalfinance-eds/lead-form:/lead-form.json",
"/content/piramalfinance-eds/home-loan-cities:/home-loan-cities.json",
"/content/piramalfinance-eds/test:/test.json"
]
}

0 comments on commit 9143a62

Please sign in to comment.