Use button instead of a for raw results link

This commit is contained in:
Koen Vlaswinkel
2023-08-16 16:37:04 +02:00
parent 3dd8583116
commit 90a39ec293

View File

@@ -22,6 +22,7 @@ import { AlertTableHeader } from "./AlertTableHeader";
import { SarifMessageWithLocations } from "./locations/SarifMessageWithLocations";
import { SarifLocation } from "./locations/SarifLocation";
import { EmptyQueryResultsMessage } from "./EmptyQueryResultsMessage";
import TextButton from "../common/TextButton";
type AlertTableProps = ResultTableProps & {
resultSet: InterpretedResultSet<SarifInterpretationData>;
@@ -73,13 +74,9 @@ export class AlertTable extends React.Component<
return (
<span>
No Alerts. See{" "}
{/*
eslint-disable-next-line
jsx-a11y/anchor-is-valid,
*/}
<a href="#" onClick={this.props.showRawResults}>
<TextButton onClick={this.props.showRawResults}>
raw results
</a>
</TextButton>
.
</span>
);