File tree Expand file tree Collapse file tree
extensions/ql-vscode/src/stories/variant-analysis Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import * as React from "react" ;
2+ import { useState } from "react" ;
3+
4+ import { Meta } from "@storybook/react" ;
5+
6+ import { RepositoriesResultFormat as RepositoriesResultFormatComponent } from "../../view/variant-analysis/RepositoriesResultFormat" ;
7+ import { ResultFormat } from "../../variant-analysis/shared/variant-analysis-result-format" ;
8+
9+ export default {
10+ title : "Variant Analysis/Repositories Result Format" ,
11+ component : RepositoriesResultFormatComponent ,
12+ argTypes : {
13+ value : {
14+ control : {
15+ disable : true ,
16+ } ,
17+ } ,
18+ } ,
19+ } as Meta < typeof RepositoriesResultFormatComponent > ;
20+
21+ export const RepositoriesResultFormat = ( ) => {
22+ const [ value , setValue ] = useState ( ResultFormat . Alerts ) ;
23+
24+ return (
25+ < RepositoriesResultFormatComponent value = { value } onChange = { setValue } />
26+ ) ;
27+ } ;
You can’t perform that action at this time.
0 commit comments