@@ -13,7 +13,10 @@ type ResultsNavProps = {
13
13
export default function ResultNavigation ( props : ResultsNavProps ) : JSX . Element {
14
14
return (
15
15
< div className = { styles . resultsNav } >
16
- < EcmaScriptVersionDropdown setEcmaScriptFlag = { props . setEcmaScriptFlag } esVersionValue = { props . state . ecmaScriptVersion } />
16
+ < EcmaScriptVersionDropdown
17
+ setEcmaScriptFlag = { props . setEcmaScriptFlag }
18
+ esVersionValue = { props . state . ecmaScriptVersion }
19
+ />
17
20
< NavBreadCrumbs
18
21
navPath = { props . state . testPath }
19
22
sliceNavToIndex = { props . sliceNavToIndex }
@@ -79,12 +82,14 @@ type DropDownProps = {
79
82
} ;
80
83
81
84
function EcmaScriptVersionDropdown ( props : DropDownProps ) : JSX . Element {
82
- const [ dropdownValue , setDropdownValue ] = React . useState ( props . esVersionValue ? props . esVersionValue : "" ) ;
85
+ const [ dropdownValue , setDropdownValue ] = React . useState (
86
+ props . esVersionValue ? props . esVersionValue : "" ,
87
+ ) ;
83
88
84
89
// Update the flag when props.esVersionValue is changed
85
- React . useEffect ( ( ) => {
86
- setDropdownValue ( props . esVersionValue )
87
- } , [ props . esVersionValue ] )
90
+ React . useEffect ( ( ) => {
91
+ setDropdownValue ( props . esVersionValue ) ;
92
+ } , [ props . esVersionValue ] ) ;
88
93
89
94
const handleVersionSelection = ( e ) => {
90
95
// Update the display value and set the flag.
0 commit comments