mirror of
https://github.com/mfts/papermark.git
synced 2025-12-20 01:03:24 +08:00
Merge pull request #416 from mfts/fix/dataroom-redirect
fix(routes): change link to button for redirecting to document
This commit is contained in:
@@ -82,8 +82,7 @@ export default function DocumentCard({
|
|||||||
<div className="flex-col">
|
<div className="flex-col">
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<h2 className="min-w-0 max-w-[150px] truncate text-sm font-semibold leading-6 text-foreground sm:max-w-md">
|
<h2 className="min-w-0 max-w-[150px] truncate text-sm font-semibold leading-6 text-foreground sm:max-w-md">
|
||||||
<Link
|
<button
|
||||||
href="#"
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setViewType("DOCUMENT_VIEW");
|
setViewType("DOCUMENT_VIEW");
|
||||||
setDocumentData({
|
setDocumentData({
|
||||||
@@ -101,7 +100,7 @@ export default function DocumentCard({
|
|||||||
>
|
>
|
||||||
<span>{document.name}</span>
|
<span>{document.name}</span>
|
||||||
<span className="absolute inset-0" />
|
<span className="absolute inset-0" />
|
||||||
</Link>
|
</button>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user