Skip to content

Commit

Permalink
rename homepage to home (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
indaviande authored Dec 16, 2024
1 parent 86c043e commit 6d5358f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion merkl.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default createConfig({
hero: hero,
},
routes: {
homepage: {
home: {
icon: "RiHomeFill",
route: "/",
key: crypto.randomUUID(),
Expand Down
6 changes: 3 additions & 3 deletions src/components/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ export default function Header() {
}, [chains, chainId]);

const routes = useMemo(() => {
const { homepage, ...rest } = config.routes;
const { home, ...rest } = config.routes;

return Object.assign(
{ homepage },
{ home },
{
claims: {
icon: "RiDashboardFill",
Expand Down Expand Up @@ -82,7 +82,7 @@ export default function Header() {
<Group className="items-center" size="xl">
<Group className="hidden lg:flex items-center" size="xl">
{Object.entries(routes)
.filter(([key]) => !["homepage", "faq", "docs"].includes(key))
.filter(([key]) => !["home", "faq", "docs"].includes(key))
.map(([key, { route }]) => {
return (
<Button
Expand Down

0 comments on commit 6d5358f

Please sign in to comment.