|
1 |
| -import { List, ListItemButton, ListItemText } from "@mui/material"; |
| 1 | +import { List } from "@mui/material"; |
2 | 2 | import { Box } from "@mui/system";
|
3 | 3 | import { DISPLAY_NAMES_TO_COMPILER_NAMES } from "components/benchmark/compilers/common";
|
4 | 4 | import { highlightUntilClick } from "components/benchmark/v3/components/common/highlight";
|
|
7 | 7 | navigateToEchartInGroup,
|
8 | 8 | } from "components/benchmark/v3/components/common/navigate";
|
9 | 9 | import { TimeSeriesChartDialogContentProps } from "components/benchmark/v3/components/common/SelectionDialog";
|
| 10 | +import { NavListItem } from "components/benchmark/v3/components/common/styledComponents"; |
10 | 11 | import { toToggleSectionId } from "components/benchmark/v3/components/common/ToggleSection";
|
11 | 12 | import { toBenchmarkTimeseriesChartSectionId } from "components/benchmark/v3/components/dataRender/components/benchmarkTimeSeries/BenchmarkChartSection";
|
12 | 13 | import { toBenchmarkTimeseriesChartGroupId } from "components/benchmark/v3/components/dataRender/components/benchmarkTimeSeries/components/BenchmarkTimeSeriesChartGroup";
|
@@ -72,27 +73,24 @@ export const CompilerPrecomputeConfirmDialogContent: React.FC<
|
72 | 73 | return (
|
73 | 74 | <List>
|
74 | 75 | {other?.parent === "timeSeriesChart" && (
|
75 |
| - <ListItemButton onClick={onGoToTable}> |
76 |
| - <ListItemText |
77 |
| - primary="Navigate to comparison table" |
78 |
| - secondary="Jump to the time series comparison table section on this page." |
79 |
| - /> |
80 |
| - </ListItemButton> |
| 76 | + <NavListItem |
| 77 | + primary="Navigate to comparison table" |
| 78 | + secondary="Jump to the time series comparison table section on this page." |
| 79 | + onClick={onGoToTable} |
| 80 | + /> |
81 | 81 | )}
|
82 | 82 | {other?.parent === "comparisonTable" && (
|
83 |
| - <ListItemButton onClick={onGoToChart}> |
84 |
| - <ListItemText |
85 |
| - primary="Navigate to time series chart" |
86 |
| - secondary="Jump to the time series comparison table section on this page." |
87 |
| - /> |
88 |
| - </ListItemButton> |
89 |
| - )} |
90 |
| - <ListItemButton onClick={onGoToUrl}> |
91 |
| - <ListItemText |
92 |
| - primary="Navigate to detail view" |
93 |
| - secondary={`Open the detailed benchmark view for suite "${left?.suite}" and compiler "${left?.compiler}" in the compiler dashboard.`} |
| 83 | + <NavListItem |
| 84 | + primary="Navigate to time series chart" |
| 85 | + secondary="Jump to the comparison table section on this page." |
| 86 | + onClick={onGoToChart} |
94 | 87 | />
|
95 |
| - </ListItemButton> |
| 88 | + )} |
| 89 | + <NavListItem |
| 90 | + primary="Navigate to detail view" |
| 91 | + secondary={`Open the detailed benchmark view for suite "${left?.suite}" and compiler "${left?.compiler}" in the compiler dashboard.`} |
| 92 | + onClick={onGoToUrl} |
| 93 | + /> |
96 | 94 | </List>
|
97 | 95 | );
|
98 | 96 | };
|
|
0 commit comments