Skip to content

Commit e727eb6

Browse files
committed
fix: update MegaMenu to use icon source and restructure links for clarity
1 parent 1189a0a commit e727eb6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/CCIP/TutorialBlockchainSelector/TutorialBlockchainSelector.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ export const TutorialBlockchainSelector = () => {
3232
const currentState = laneStore.get()
3333
const bothChainsSelected = Boolean(
3434
currentState.sourceChain &&
35-
currentState.destinationChain &&
36-
currentState.sourceNetwork &&
37-
currentState.destinationNetwork
35+
currentState.destinationChain &&
36+
currentState.sourceNetwork &&
37+
currentState.destinationNetwork
3838
)
3939
updateStepProgress("setup", "blockchains-selected", bothChainsSelected)
4040
}

src/components/Header/Nav/ProductNavigation/Mobile/MegaMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ function MegaMenu() {
77
return (
88
<div className={styles.wrapper}>
99
<div className={styles.resourcesMenuContentMain}>
10-
{megaMenuSections.map((section) => (
10+
{Object.values(megaMenuSections).map((section) => (
1111
<div className={styles.resourcesMenuContentRow} key={section.title}>
1212
<h2 className="label">{section.title}</h2>
1313
{section.items?.map((item, index) => (
1414
<MegaMenuItem
1515
key={index}
16-
image={item.image?.src}
16+
image={item.icon?.src}
1717
title={item?.title}
1818
description={item.description}
19-
links={item.links}
19+
links={[{ label: item.title, href: item.link }]}
2020
/>
2121
))}
2222
</div>

0 commit comments

Comments
 (0)