Skip to content

Commit 90a39ec

Browse files
committed
Use button instead of a for raw results link
1 parent 3dd8583 commit 90a39ec

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

extensions/ql-vscode/src/view/results/alert-table.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { AlertTableHeader } from "./AlertTableHeader";
2222
import { SarifMessageWithLocations } from "./locations/SarifMessageWithLocations";
2323
import { SarifLocation } from "./locations/SarifLocation";
2424
import { EmptyQueryResultsMessage } from "./EmptyQueryResultsMessage";
25+
import TextButton from "../common/TextButton";
2526

2627
type AlertTableProps = ResultTableProps & {
2728
resultSet: InterpretedResultSet<SarifInterpretationData>;
@@ -73,13 +74,9 @@ export class AlertTable extends React.Component<
7374
return (
7475
<span>
7576
No Alerts. See{" "}
76-
{/*
77-
eslint-disable-next-line
78-
jsx-a11y/anchor-is-valid,
79-
*/}
80-
<a href="#" onClick={this.props.showRawResults}>
77+
<TextButton onClick={this.props.showRawResults}>
8178
raw results
82-
</a>
79+
</TextButton>
8380
.
8481
</span>
8582
);

0 commit comments

Comments
 (0)