File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
debugger/components/debugger-alg-picker
libraries/components/library-hero Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
import { LibraryFilterLabel } from "@/features/libraries/models/library-filters.model" ;
2
2
3
3
export interface DebuggerPickerOptionModel {
4
- label : LibraryFilterLabel ;
5
- options : {
6
- value : any ;
7
- label : string ;
8
- isDisabled ?: boolean
9
- } [ ] ;
4
+ value : any ;
5
+ label : string | LibraryFilterLabel ;
6
+ isDisabled ?: boolean ;
10
7
}
Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ import { useDecoderStore } from "@/features/decoder/services/decoder.store";
11
11
import { useDebuggerStore } from "@/features/debugger/services/debugger.store" ;
12
12
import { DebuggerWidgetValues } from "@/features/common/values/debugger-widget.values" ;
13
13
import { DebuggerPickerComponent } from "@/features/common/components/debugger-picker/debugger-picker.component" ;
14
- import { DebuggerPickerOptionModel } from "@/features/common/models/debugger-picker-option.model" ;
15
14
import {
16
15
algDictionary ,
17
16
jwsExampleAlgHeaderParameterValuesDictionary ,
18
17
} from "@/features/common/values/jws-alg-header-parameter-values.dictionary" ;
19
18
import { useButton } from "@react-aria/button" ;
20
19
import { clsx } from "clsx" ;
21
20
import { PrimaryFont } from "@/libs/theme/fonts" ;
21
+ import { DebuggerPickerOptionModel } from "@/features/common/models/debugger-picker-option.model" ;
22
22
23
23
enum PickerStates {
24
24
IDLE = "IDLE" ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { LibrariesDictionaryModel } from "@/features/localization/models/librari
14
14
import { DebuggerPickerComponent } from "@/features/common/components/debugger-picker/debugger-picker.component" ;
15
15
import { LibraryFilterLabel } from "../../models/library-filters.model" ;
16
16
import { DebuggerPickerOptionModel } from "@/features/common/models/debugger-picker-option.model" ;
17
+ import { GroupBase } from "react-select" ;
17
18
18
19
interface LibraryHeroComponentProps {
19
20
languageCode : string ;
@@ -75,12 +76,12 @@ export const LibraryHeroComponent: React.FC<LibraryHeroComponentProps> = ({
75
76
label : "Algorithm" ,
76
77
options : [ ...algorithmOptions ] ,
77
78
} ,
78
- ] as DebuggerPickerOptionModel [ ] ;
79
+ ] as GroupBase < DebuggerPickerOptionModel > [ ] ;
79
80
} , [
80
81
categoryOptions ,
81
82
dictionary . filterPicker . defaultValue . label ,
82
83
dictionary . filterPicker . defaultValue . value ,
83
- algorithmOptions
84
+ algorithmOptions ,
84
85
] ) ;
85
86
86
87
return (
You can’t perform that action at this time.
0 commit comments