@@ -14,7 +14,9 @@ type ResultsNavProps = {
14
14
setFilterOption : ( string ) => void ;
15
15
} ;
16
16
17
- export default function ResultNavigation ( props : ResultsNavProps ) : JSX . Element {
17
+ export default function ResultNavigation (
18
+ props : ResultsNavProps ,
19
+ ) : React . ReactNode {
18
20
return (
19
21
< div className = { styles . resultsNav } >
20
22
< div className = { styles . navSection } >
@@ -77,7 +79,7 @@ type BreadCrumbItemProps = {
77
79
sliceNavToIndex : ( number ) => void ;
78
80
} ;
79
81
80
- function BreadCrumbItem ( props : BreadCrumbItemProps ) : JSX . Element {
82
+ function BreadCrumbItem ( props : BreadCrumbItemProps ) : React . ReactNode {
81
83
return (
82
84
< li className = { props . breadcrumbValue } >
83
85
< Link
@@ -97,7 +99,7 @@ type DropDownProps = {
97
99
setEcmaScriptFlag : ( string ) => void ;
98
100
} ;
99
101
100
- function EcmaScriptVersionDropdown ( props : DropDownProps ) : JSX . Element {
102
+ function EcmaScriptVersionDropdown ( props : DropDownProps ) : React . ReactNode {
101
103
const [ dropdownValue , setDropdownValue ] = React . useState (
102
104
props . esVersionValue ? props . esVersionValue : "" ,
103
105
) ;
@@ -139,7 +141,7 @@ type SortProps = {
139
141
setSortOption : ( string ) => void ;
140
142
} ;
141
143
142
- function SortingDropdown ( props : SortProps ) : JSX . Element {
144
+ function SortingDropdown ( props : SortProps ) : React . ReactNode {
143
145
const [ sortValue , setSortValue ] = React . useState < string > (
144
146
props . sortValue ? props . sortValue : "alpha" ,
145
147
) ;
@@ -179,7 +181,7 @@ type FilterProps = {
179
181
setFilterOption : ( string ) => void ;
180
182
} ;
181
183
182
- function FilterDropdown ( props : FilterProps ) : JSX . Element {
184
+ function FilterDropdown ( props : FilterProps ) : React . ReactNode {
183
185
const [ filterValue , setFilterValue ] = React . useState < string > (
184
186
props . filterOption ?? FilterOption . None ,
185
187
) ;
0 commit comments