mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-05 06:09:57 -05:00
Renaming previewPath to previewFile to match existing path/file style.
This commit is contained in:
parent
a82917fdf7
commit
87b179eeb9
5 changed files with 26 additions and 27 deletions
|
|
@ -23,7 +23,8 @@ import {
|
|||
HelpHeader,
|
||||
isoDatetimeToString,
|
||||
mimetypeColor,
|
||||
PageContainer, PreviewLink,
|
||||
PageContainer,
|
||||
PreviewLink,
|
||||
SearchInput,
|
||||
TabLinks,
|
||||
textEllipsis,
|
||||
|
|
@ -68,14 +69,14 @@ function ArchivePage() {
|
|||
|
||||
const singlefileUrl = archive.singlefile_path ? `/media/${encodeURIComponent(archive.singlefile_path)}` : null;
|
||||
const screenshotUrl = archive.screenshot_path ? `/media/${encodeURIComponent(archive.screenshot_path)}` : null;
|
||||
const readabilityUrl = archive.readability_path ? `/media/${encodeURIComponent(archive.readability_path)}` : null;
|
||||
const readabilityUrl = archive.readability_path;
|
||||
|
||||
const singlefileButton = <ExternalCardLink to={singlefileUrl}>
|
||||
<Button content='View' color='blue'/>
|
||||
</ExternalCardLink>;
|
||||
|
||||
const readabilityLink = readabilityUrl ?
|
||||
<ExternalCardLink to={readabilityUrl}><Button content='Article'/></ExternalCardLink> :
|
||||
<PreviewLink file={{path: readabilityUrl, mimetype: 'text/html'}}><Button content='Article'/></PreviewLink> :
|
||||
<Button disabled content='Article'/>;
|
||||
|
||||
const screenshot = screenshotUrl ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue