Skip to content

Commit 58fcebd

Browse files
mirhamasalaclaude
andcommitted
Add RFS badge to agents slug page header
Renders the RFS-N badge above the markdown content using the Badge component, sourced from frontmatter id. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent aabd791 commit 58fcebd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/app/agents/[slug]/page.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Badge } from '@filecoin-foundation/ui-filecoin/Badge'
12
import { Button } from '@filecoin-foundation/ui-filecoin/Button'
23
import { MarkdownContent } from '@filecoin-foundation/ui-filecoin/Markdown/MarkdownContent'
34
import { PageSection } from '@filecoin-foundation/ui-filecoin/PageSection'
@@ -26,9 +27,15 @@ export default async function RFSPage({ params }: RFSPageProps) {
2627
<>
2728
<Navigation backgroundVariant="light" />
2829
<PageSection backgroundVariant="light" paddingVariant="topCompact">
29-
<article>
30+
<article className="flex items-start flex-col space-y-10">
31+
<Badge
32+
variant="primary"
33+
textTransform="none"
34+
>{`RFS-${rfsData.data.id}`}</Badge>
35+
3036
<MarkdownContent>{rfsData.content}</MarkdownContent>
31-
<div className="mt-12 md:mt-14">
37+
38+
<div className="mt-5">
3239
<SubmitProposalButton />
3340
</div>
3441
</article>

0 commit comments

Comments
 (0)