style(cover): matched style for cover letters with templates

This commit is contained in:
Leons Aleksandrovs
2025-07-13 14:35:01 +03:00
parent b44c797272
commit dc83819192
2 changed files with 15 additions and 11 deletions
+12
View File
@@ -0,0 +1,12 @@
import type { CoverLetterPreview } from "@/types/api";
import { Link } from "@tanstack/react-router";
export default ({ cover }: { cover: CoverLetterPreview }) => {
return (
<Link to={"/cover/$coverId"} params={{ coverId: cover.id.toString() }}>
<div className="p-4 border rounded-lg hover:bg-muted/40">
<h2 className="text-xl font-semibold">{cover.name}</h2>
</div>
</Link>
);
};