FileCard uses Link
This commit is contained in:
1 parent
53bdc44065
commit
d89917dcfd
1 file changed
+6
-3
@@ -5,6 +5,7 @@ import { FileTokenData, Sign } from '@/types'
|
|||||||
import { size, ext } from '@/lib/file'
|
import { size, ext } from '@/lib/file'
|
||||||
import { getResizedUrl } from '@/lib/image'
|
import { getResizedUrl } from '@/lib/image'
|
||||||
import { Signature } from './Signature'
|
import { Signature } from './Signature'
|
||||||
|
import Link from 'next/link'
|
||||||
|
|
||||||
export type FileCardProps = FileTokenData & {
|
export type FileCardProps = FileTokenData & {
|
||||||
sign?: Sign
|
sign?: Sign
|
||||||
@@ -45,9 +46,11 @@ export const FileCard: React.FC<FileCardProps> = props => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={s.info}>
|
<div className={s.info}>
|
||||||
<a href={props.file_url} target="_blank">
|
<Link href={props.file_url}>
|
||||||
{format} ({fileSize})
|
<a target="_blank" rel="noreferrer">
|
||||||
</a>
|
{format} ({fileSize})
|
||||||
|
</a>
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user