Replace FileViewerActions icon with OpenIcon
authorMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Thu, 13 Dec 2018 14:17:03 +0000 (15:17 +0100)
committerMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Thu, 13 Dec 2018 14:17:03 +0000 (15:17 +0100)
Feature #13540

Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski@contractors.roche.com>

src/views-components/context-menu/actions/file-viewer-actions.tsx

index bedc59059451dbf46f896c864ed8ad877083a39a..b2ce556f891989b3f2c48fb9795bde089d699615 100644 (file)
@@ -3,13 +3,14 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import * as React from "react";
-import { ListItemText, ListItem, ListItemIcon, Icon } from "@material-ui/core";
+import { ListItemText, ListItem, ListItemIcon } from "@material-ui/core";
 import { RootState } from '~/store/store';
 import { getNodeValue } from '~/models/tree';
 import { CollectionDirectory, CollectionFile, CollectionFileType } from '~/models/collection-file';
 import { FileViewerList, FileViewer } from '~/models/file-viewers-config';
 import { getFileViewers } from '~/store/file-viewers/file-viewers-selectors';
 import { connect } from 'react-redux';
+import { OpenIcon } from '~/components/icon/icon';
 
 interface FileViewerActionProps {
     fileUrl: string;
@@ -63,7 +64,7 @@ export const FileViewerActions = connect(mapStateToProps)(
                     target='_blank'>
                     <ListItem button>
                         <ListItemIcon>
-                            <Icon />
+                            <OpenIcon />
                         </ListItemIcon>
                         <ListItemText>
                             {viewer.name}