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 11import { LibraryFilterLabel } from "@/features/libraries/models/library-filters.model" ;
22
33export 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 ;
107}
Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ import { useDecoderStore } from "@/features/decoder/services/decoder.store";
1111import { useDebuggerStore } from "@/features/debugger/services/debugger.store" ;
1212import { DebuggerWidgetValues } from "@/features/common/values/debugger-widget.values" ;
1313import { DebuggerPickerComponent } from "@/features/common/components/debugger-picker/debugger-picker.component" ;
14- import { DebuggerPickerOptionModel } from "@/features/common/models/debugger-picker-option.model" ;
1514import {
1615 algDictionary ,
1716 jwsExampleAlgHeaderParameterValuesDictionary ,
1817} from "@/features/common/values/jws-alg-header-parameter-values.dictionary" ;
1918import { useButton } from "@react-aria/button" ;
2019import { clsx } from "clsx" ;
2120import { PrimaryFont } from "@/libs/theme/fonts" ;
21+ import { DebuggerPickerOptionModel } from "@/features/common/models/debugger-picker-option.model" ;
2222
2323enum PickerStates {
2424 IDLE = "IDLE" ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { LibrariesDictionaryModel } from "@/features/localization/models/librari
1414import { DebuggerPickerComponent } from "@/features/common/components/debugger-picker/debugger-picker.component" ;
1515import { LibraryFilterLabel } from "../../models/library-filters.model" ;
1616import { DebuggerPickerOptionModel } from "@/features/common/models/debugger-picker-option.model" ;
17+ import { GroupBase } from "react-select" ;
1718
1819interface LibraryHeroComponentProps {
1920 languageCode : string ;
@@ -75,12 +76,12 @@ export const LibraryHeroComponent: React.FC<LibraryHeroComponentProps> = ({
7576 label : "Algorithm" ,
7677 options : [ ...algorithmOptions ] ,
7778 } ,
78- ] as DebuggerPickerOptionModel [ ] ;
79+ ] as GroupBase < DebuggerPickerOptionModel > [ ] ;
7980 } , [
8081 categoryOptions ,
8182 dictionary . filterPicker . defaultValue . label ,
8283 dictionary . filterPicker . defaultValue . value ,
83- algorithmOptions
84+ algorithmOptions ,
8485 ] ) ;
8586
8687 return (
You can’t perform that action at this time.
0 commit comments