X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/35ce0164f3863e7117fade1319ed3c2789bc216a..3c7e3cdc547ad5468421e1c049daa94b0d4b8bc0:/src/views-components/context-menu/actions/file-viewer-action.tsx

diff --git a/src/views-components/context-menu/actions/file-viewer-action.tsx b/src/views-components/context-menu/actions/file-viewer-action.tsx
index a631424e..bc3d0bd6 100644
--- a/src/views-components/context-menu/actions/file-viewer-action.tsx
+++ b/src/views-components/context-menu/actions/file-viewer-action.tsx
@@ -2,23 +2,15 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as React from "react";
-import { connect } from 'react-redux';
+import React from "react";
 import { ListItemIcon, ListItemText, ListItem } from "@material-ui/core";
-import { OpenIcon } from "~/components/icon/icon";
-import { sanitizeToken } from "./helpers";
-import { RootState } from "~/store/store";
+import { OpenIcon } from "components/icon/icon";
 
 export const FileViewerAction = (props: any) => {
-    const {
-        keepWebServiceUrl,
-        keepWebInlineServiceUrl,
-    } = props;
-
     return props.href
         ? <a
             style={{ textDecoration: 'none' }}
-            href={sanitizeToken(props.href.replace(keepWebServiceUrl, keepWebInlineServiceUrl), true)}
+            href={props.href}
             target="_blank"
             onClick={props.onClick}>
             <ListItem button>
@@ -32,11 +24,3 @@ export const FileViewerAction = (props: any) => {
         </a>
         : null;
 };
-
-const mapStateToProps = ({ auth }: RootState): any => ({
-    keepWebServiceUrl: auth.config.keepWebServiceUrl,
-    keepWebInlineServiceUrl: auth.config.keepWebInlineServiceUrl,
-});
-
-
-export default connect(mapStateToProps, null)(FileViewerAction);
