Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Yesmunt committed Aug 12, 2019
1 parent ba2ccd4 commit 90bcde4
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 507 deletions.
1 change: 0 additions & 1 deletion src/ui/component/fileDownloadLink/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ function FileDownloadLink(props: Props) {
return (
<ToolTip label={__('Open file')}>
<Button
title="Remove from library"
button="link"
icon={ICONS.EXTERNAL}
onClick={() => {
Expand Down
10 changes: 1 addition & 9 deletions src/ui/component/fileRender/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ import AppViewer from 'component/viewers/appViewer';
import path from 'path';
import fs from 'fs';

// This is half complete, the video viewer works fine for audio, it just doesn't look pretty
// const AudioViewer = React.lazy<*>(() =>
// import(
// /* webpackChunkName: "audioViewer" */
// 'component/viewers/audioViewer'
// )
// );

const DocumentViewer = React.lazy<*>(() =>
import(
/* webpackChunkName: "documentViewer" */
Expand Down Expand Up @@ -131,7 +123,7 @@ class FileRender extends React.PureComponent<Props> {
};

// Check for a valid fileType or mediaType
let viewer = fileType ? fileTypes[fileType] : mediaTypes[mediaType];
let viewer = (fileType && fileTypes[fileType]) || mediaTypes[mediaType];

// Check for Human-readable files
if (!viewer && readableFiles.includes(mediaType)) {
Expand Down
2 changes: 0 additions & 2 deletions src/ui/component/fileViewer/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ export default function FileViewer(props: Props) {
thumbnail,
streamingUrl,
isStreamable,
// Add this back for full-screen support
// viewerContainer,
} = props;

const isPlayable = ['audio', 'video'].indexOf(mediaType) !== -1;
Expand Down
300 changes: 0 additions & 300 deletions src/ui/component/viewers/audioViewer.jsx

This file was deleted.

Loading

0 comments on commit 90bcde4

Please sign in to comment.