Skip to content

Commit d5589cf

Browse files
authored
[Platform]: Update navigate to credible set row in plot tooltips (#691)
1 parent c7a6eed commit d5589cf

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

packages/sections/src/study/GWASCredibleSets/ManhattanPlot.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ export default ManhattanPlot;
154154
function renderTooltip(datum) {
155155
return (
156156
<ObsTooltipTable>
157-
<ObsTooltipRow label="Navigate">
157+
<ObsTooltipRow label="Credible set">
158158
<Box display="flex">
159-
<Navigate to={`../credible-set/${datum.studyLocusId}`} />
159+
<Navigate to={`/credible-set/${datum.studyLocusId}`} />
160160
</Box>
161161
</ObsTooltipRow>
162162
<ObsTooltipRow label="Lead variant">

packages/sections/src/variant/GWASCredibleSets/PheWasPlot.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import { Fragment } from "react";
22
import * as PlotLib from "@observablehq/plot";
33
import { Box, Chip, Skeleton, Typography, useTheme } from "@mui/material";
4-
import { faArrowRightToBracket } from "@fortawesome/free-solid-svg-icons";
5-
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
4+
65
import {
76
ClinvarStars,
87
Tooltip,
98
Link,
109
DisplayVariantId,
11-
OtScoreLinearBar,
1210
ObsPlot,
1311
ObsTooltipTable,
1412
ObsTooltipRow,
13+
Navigate,
1514
ScientificNotation,
1615
DataDownloader,
1716
} from "ui";
@@ -320,10 +319,10 @@ function renderTooltip(datum) {
320319

321320
return (
322321
<ObsTooltipTable>
323-
<ObsTooltipRow label="Navigate">
324-
<Link to={`/credible-set/${datum.studyLocusId}`}>
325-
<FontAwesomeIcon icon={faArrowRightToBracket} />
326-
</Link>
322+
<ObsTooltipRow label="Credible set">
323+
<Box display="flex">
324+
<Navigate to={`/credible-set/${datum.studyLocusId}`} />
325+
</Box>
327326
</ObsTooltipRow>
328327
<ObsTooltipRow label="Lead variant">
329328
{datum.variant.id === datum._pageId ? (

0 commit comments

Comments
 (0)