Skip to content

Commit

Permalink
add rest of cards & prepare for tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
3ch023 committed Mar 26, 2024
1 parent f95bbf6 commit 26cfa9a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
10 changes: 2 additions & 8 deletions libs/blocks/merch-twp/merch-twp.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,14 @@ export default async function init(el) {
if (cards.length) {
const { base } = getConfig();
await import(`${base}/features/spectrum-web-components/dist/theme.js`);

const layout = createTag('merch-subscription-layout', { }, '', { });

const merchCards = [...cards].map((card) => {
card.setAttribute('slot', 'cards');
return card;
});
layout.append(merchCards[0]);
const panel = createPanel();
layout.append(panel);

layout.append(...merchCards);
layout.append(createPanel());
el.append(layout);
await cards[0].querySelector('[data-wcs-osi]')?.onceSettled();
panel.card = cards[0];
}
return el;
}
12 changes: 6 additions & 6 deletions libs/deps/merch-subscription-layout.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libs/deps/merch-subscription-panel.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 26cfa9a

Please sign in to comment.