Add variant analysis header to view

This commit is contained in:
Koen Vlaswinkel
2022-09-14 14:14:13 +02:00
parent e5376b3469
commit 182c2f3b8e
4 changed files with 21 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
* https://jestjs.io/docs/configuration
*/
export default {
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,

View File

@@ -13,7 +13,7 @@
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"experimentalDecorators": true,
"esModuleInterop": true
"skipLibCheck": true
},
"exclude": ["node_modules"]
}

View File

@@ -1,5 +1,21 @@
import * as React from 'react';
import { VariantAnalysisStatus } from '../../remote-queries/shared/variant-analysis';
import { VariantAnalysisContainer } from './VariantAnalysisContainer';
import { VariantAnalysisHeader } from './VariantAnalysisHeader';
export function VariantAnalysis(): JSX.Element {
return <span>Hello!</span>;
return (
<VariantAnalysisContainer>
<VariantAnalysisHeader
queryName="Example query"
queryFileName="example.ql"
status={VariantAnalysisStatus.InProgress}
onOpenQueryClick={() => void 0}
onViewQueryClick={() => void 0}
onStopQueryClick={() => void 0}
onCopyRepositoryListClick={() => void 0}
onExportResultsClick={() => void 0}
/>
</VariantAnalysisContainer>
);
}

View File

@@ -10,6 +10,7 @@
"moduleResolution": "node",
"sourceMap": true,
"rootDir": "src",
"skipLibCheck": true,
"strictNullChecks": true,
"noFallthroughCasesInSwitch": true,
"preserveWatchOutput": true,
@@ -19,6 +20,6 @@
"noUnusedLocals": true,
"noUnusedParameters": true
},
"include": ["src/**/*.ts", "jest.config.ts"],
"include": ["src/**/*.ts"],
"exclude": ["node_modules", "test", "**/view"]
}