@@ -7,11 +7,19 @@ import { ResultRow } from "../../common/bqrs-cli-types";
77import RawTableRow from "../results/RawTableRow" ;
88import { vscode } from "../vscode-api" ;
99import { sendTelemetry } from "../common/telemetry" ;
10+ import TextButton from "../common/TextButton" ;
11+ import { styled } from "styled-components" ;
1012
1113interface Props {
1214 comparison : SetComparisonsMessage ;
1315}
1416
17+ const OpenButton = styled ( TextButton ) `
18+ cursor: pointer;
19+ text-decoration: underline;
20+ padding: 0;
21+ ` ;
22+
1523export default function CompareTable ( props : Props ) {
1624 const comparison = props . comparison ;
1725 const rows = props . comparison . rows ! ;
@@ -46,32 +54,14 @@ export default function CompareTable(props: Props) {
4654 < thead >
4755 < tr >
4856 < td >
49- { /*
50- eslint-disable-next-line
51- jsx-a11y/anchor-is-valid,
52- jsx-a11y/click-events-have-key-events,
53- jsx-a11y/no-static-element-interactions
54- */ }
55- < a
56- onClick = { ( ) => openQuery ( "from" ) }
57- className = "vscode-codeql__compare-open"
58- >
57+ < OpenButton onClick = { ( ) => openQuery ( "from" ) } >
5958 { comparison . stats . fromQuery ?. name }
60- </ a >
59+ </ OpenButton >
6160 </ td >
6261 < td >
63- { /*
64- eslint-disable-next-line
65- jsx-a11y/anchor-is-valid,
66- jsx-a11y/click-events-have-key-events,
67- jsx-a11y/no-static-element-interactions
68- */ }
69- < a
70- onClick = { ( ) => openQuery ( "to" ) }
71- className = "vscode-codeql__compare-open"
72- >
62+ < OpenButton onClick = { ( ) => openQuery ( "to" ) } >
7363 { comparison . stats . toQuery ?. name }
74- </ a >
64+ </ OpenButton >
7565 </ td >
7666 </ tr >
7767 < tr >
0 commit comments