18834: Unit tests added
[arvados-workbench2.git] / src / views-components / context-menu / actions / file-viewer-action.tsx
index e02e4837456b133c780080ff79293a2fd00f665a..5d98ab6e131bf3ad7716f4a49e5d6a30467265cf 100644 (file)
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as React from "react";
+import React from "react";
 import { ListItemIcon, ListItemText, ListItem } from "@material-ui/core";
 import { OpenIcon } from "components/icon/icon";
 
@@ -12,6 +12,7 @@ export const FileViewerAction = (props: any) => {
             style={{ textDecoration: 'none' }}
             href={props.href}
             target="_blank"
+            rel="noopener noreferrer"
             onClick={props.onClick}>
             <ListItem button>
                 <ListItemIcon>