chore: simplify document attachment rendering in DocumentSigningForm

- Removed unnecessary Button wrapper around attachment links.
- Enhanced layout for attachment links with improved styling and structure.
This commit is contained in:
Catalin Documenso
2025-05-07 11:11:36 +03:00
parent cec25ac719
commit 6da56887ee

View File

@ -388,16 +388,16 @@ export const DocumentSigningForm = ({
<div className="flex flex-col space-y-2">
{document.attachments.map((attachment, index) => (
<div key={index}>
<Button variant="outline" asChild>
<Link
to={attachment.url}
target="_blank"
rel="noopener noreferrer"
>
<LinkIcon className="mr-2 h-4 w-4" />
<div className="ml-2 flex flex-row items-center gap-2">
<LinkIcon className="h-4 w-4" />
{attachment.label}
</div>
</Link>
</Button>
</div>
))}
</div>