Skip to content

Commit

Permalink
Changed Link back to anchor tag
Browse files Browse the repository at this point in the history
  • Loading branch information
benjdelt committed Nov 20, 2019
1 parent 7cac276 commit 39e7c99
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/components/FileInfo/FileInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from 'react'
import { availableGlyphs } from '../Icons'
import { bytesToSize } from '../ImageInput/ImageInput'
import { Link } from 'src/components/Links'
import { IUploadedFileMeta } from 'src/stores/storage'
import { FileDetails } from './FileDetails'

Expand Down Expand Up @@ -47,14 +46,14 @@ export class FileInfo extends React.Component<IProps, IState> {
return (
<>
{allowDownload && meta.downloadUrl ? (
<Link
to={meta.downloadUrl}
<a
href={meta.downloadUrl}
target="_blank"
download={file.name}
sx={{ width: '300px' }}
style={{ width: '300px' }}
>
<FileDetails file={file} glyph={glyph} size={size} />
</Link>
</a>
) : (
<FileDetails file={file} glyph={glyph} size={size} />
)}
Expand Down

0 comments on commit 39e7c99

Please sign in to comment.