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