FileCard uses Link

This commit is contained in:
tmshv committed 2022-09-06 14:10:23 +03:00
1 parent 53bdc44065
commit d89917dcfd
1 file changed
+6 -3
+6 -3
View File
@@ -5,6 +5,7 @@ import { FileTokenData, Sign } from '@/types'
import { size, ext } from '@/lib/file'
import { getResizedUrl } from '@/lib/image'
import { Signature } from './Signature'
import Link from 'next/link'
export type FileCardProps = FileTokenData & {
sign?: Sign
@@ -45,9 +46,11 @@ export const FileCard: React.FC<FileCardProps> = props => {
</div>
<div className={s.info}>
<a href={props.file_url} target="_blank">
{format} ({fileSize})
</a>
<Link href={props.file_url}>
<a target="_blank" rel="noreferrer">
{format} ({fileSize})
</a>
</Link>
</div>
</div>
)