This repository has been archived on 2026-11-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hope-events/frontend/src/components/shared/BackLink.tsx
T
joshuaandClaude Opus 5.5 9be78c3c34 Use one back link style across the dashboards
Every dashboard page now uses the shared BackLink, the small
"← Back to dashboard" link above the page title that the Waitlist page
already had, instead of a mix of grey Back buttons in different places.
Pages that had no way back (site settings, profile, donate, manual
registration) get one too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 13:25:04 +02:00

15 lines
487 B
TypeScript

import React from "react";
import Link from "next/link";
/**
* The site-wide "← Back to …" link, shown above a page's title (next to its icon tile).
* Every dashboard page uses this one so back navigation looks and sits the same everywhere.
*/
export function BackLink({ href, label = "Back to dashboard" }: { href: string; label?: string }) {
return (
<Link href={href} className="inline-block text-xs text-brand-600 hover:underline">
← {label}
</Link>
);
}