17109: Adds support for inline keep-web PDH URLs.
[arvados.git] / src / views-components / context-menu / actions / file-viewer-action.tsx
index 9af2ef92042a39eb8905345c66af81af9438b6dc..e31bb10d441b5b135a6bf7c79fde8de1726768a8 100644 (file)
@@ -5,14 +5,12 @@
 import * as React from "react";
 import { ListItemIcon, ListItemText, ListItem } from "@material-ui/core";
 import { OpenIcon } from "~/components/icon/icon";
-import { sanitizeToken } from "./helpers";
-
-export const FileViewerAction = (props: { href?: any, download?: any, onClick?: () => void, kind?: string, currentCollectionUuid?: string; }) => {
 
+export const FileViewerAction = (props: any) => {
     return props.href
         ? <a
             style={{ textDecoration: 'none' }}
-            href={sanitizeToken(props.href, true)}
+            href={props.href}
             target="_blank"
             onClick={props.onClick}>
             <ListItem button>
@@ -21,7 +19,7 @@ export const FileViewerAction = (props: { href?: any, download?: any, onClick?:
                 </ListItemIcon>
                 <ListItemText>
                     Open in new tab
-                 </ListItemText>
+                    </ListItemText>
             </ListItem>
         </a>
         : null;