From 6002ba3541f35153688d2fa0d875500904f7c413 Mon Sep 17 00:00:00 2001 From: HaneenT Date: Tue, 12 Sep 2023 11:04:48 -0400 Subject: [PATCH] Updated links --- src/actions/DataType/dataTypeActions.js | 8 ++++---- src/components/Summary/CellTypeSummary.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/actions/DataType/dataTypeActions.js b/src/actions/DataType/dataTypeActions.js index f264f366..20505bf7 100644 --- a/src/actions/DataType/dataTypeActions.js +++ b/src/actions/DataType/dataTypeActions.js @@ -28,15 +28,15 @@ export const setDataTypeAndRedirect = (dataType, props) => { switch (dataType) { case "sn": dispatch(setDataType(dataType)); - props.history.push('/explorer/dataviz'); + window.open('/explorer/dataviz', '_self'); break; case "sc": dispatch(setDataType(dataType)); - props.history.push('/explorer/dataviz'); + window.open('/explorer/dataviz', '_self'); break; case "rt": dispatch(setDataType(dataType)); - props.history.push('/explorer/regionalviz'); + window.open('/explorer/regionalviz', '_self'); break; case "wsi": window.open('/spatial-viewer/?size=n_20_n&filters%5B0%5D%5Bfield%5D=datatype&filters%5B0%5D%5Bvalues%5D%5B0%5D=Light%20Microscopic%20Whole%20Slide%20Images&filters%5B0%5D%5Btype%5D=any', '_self') @@ -60,7 +60,7 @@ export const setDataTypeAndRedirect = (dataType, props) => { window.open('https://metaspace2020.eu/datasets?prj=8f102fc4-62a8-11ec-89bf-bba413a122a2&q=_glyc', '_blank'); break default: - props.history.push('/explorer/'); + window.open('/explorer/', '_self'); } } } diff --git a/src/components/Summary/CellTypeSummary.js b/src/components/Summary/CellTypeSummary.js index df417deb..f4c53a59 100644 --- a/src/components/Summary/CellTypeSummary.js +++ b/src/components/Summary/CellTypeSummary.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import { Container, Row, Col } from 'reactstrap'; -import { Grid, TableFixedColumns, TableColumnResizing, TableHeaderRow, Table} from '@devexpress/dx-react-grid-bootstrap4'; +import { Grid, TableColumnResizing, TableHeaderRow, Table} from '@devexpress/dx-react-grid-bootstrap4'; import ConceptSelectFullWidth from '../ConceptSelect/ConceptSelectFullWidth'; import { fetchClusterHierarchy } from '../../helpers/ApolloClient'; import { Spinner } from "reactstrap";