Skip to content

Commit

Permalink
feat: add footer navigation links and update header button for extern…
Browse files Browse the repository at this point in the history
…al routes
  • Loading branch information
hugolxt committed Jan 17, 2025
1 parent 8a5c44e commit f6f8ddc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ export default function Footer() {
/>
</Button>
<Socials />
{Object.keys(merklConfig.footerNavLinks ?? {}).length > 0 &&
Object.entries(merklConfig.footerNavLinks).map(([key, route]) => (
<Button
look="soft"
className="capitalize"
size="lg"
key={route.key}
external={route.external}
to={route.route}>
{key}
</Button>
))}
</Group>
<Group className="items-center gap-xl*2">
<Group className="items-center" size="xl">
Expand Down
3 changes: 2 additions & 1 deletion src/components/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ export default function Header() {
look="soft"
size="lg"
key={`${key}-link`}
to={route?.route}>
to={route?.route}
external={route?.external}>
{key}
</Button>
);
Expand Down
1 change: 1 addition & 0 deletions src/config/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export type MerklConfig<T extends Themes> = {
[key: string]: string;
};
footerLinks: { image: string; link: string; key: string }[];
footerNavLinks: routesType;
};

export function createConfig<T extends Themes>({ wagmi, ...config }: MerklConfig<T>) {
Expand Down

0 comments on commit f6f8ddc

Please sign in to comment.