Skip to content

Commit

Permalink
add link to protocol header
Browse files Browse the repository at this point in the history
  • Loading branch information
indaviande committed Dec 5, 2024
1 parent 73c3808 commit cedc54b
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/routes/_merkl.protocols.$id.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { type LoaderFunctionArgs, type MetaFunction, json } from "@remix-run/node";
import {
type LoaderFunctionArgs,
type MetaFunction,
json,
} from "@remix-run/node";
import { Outlet, useLoaderData } from "@remix-run/react";
import { Button, Group, Icon } from "dappkit";
import { ProtocolService } from "src/api/services/protocol.service";
import Hero from "src/components/composite/Hero";

Expand All @@ -21,7 +26,15 @@ export default function Index() {
return (
<Hero
icons={[{ src: protocol?.icon }]}
title={protocol?.name}
title={
<Group className="items-center">
{protocol?.name}
{/* TODO: add the link to this button */}
<Button look="soft" size="xl" to={protocol?.name}>
<Icon remix="RiArrowRightUpLine" />
</Button>
</Group>
}
breadcrumbs={[
{ link: "/protocols", name: "Protocols" },
{ link: `/protocols/${protocol.name}`, name: protocol.name },
Expand All @@ -33,7 +46,8 @@ export default function Index() {
link: `/protocols/${protocol.name?.toLowerCase()}`,
key: crypto.randomUUID(),
},
]}>
]}
>
<Outlet />
</Hero>
);
Expand Down

0 comments on commit cedc54b

Please sign in to comment.