mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 17:21:41 +10:00
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:
@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user