File tree 2 files changed +3
-5
lines changed
arduino-ide-extension/src/browser
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export namespace BoardsDropDown {
28
28
29
29
export class BoardsDropDown extends React . Component < BoardsDropDown . Props > {
30
30
protected dropdownElement : HTMLElement ;
31
- listRef : React . RefObject < HTMLDivElement > ;
31
+ private listRef : React . RefObject < HTMLDivElement > ;
32
32
33
33
constructor ( props : BoardsDropDown . Props ) {
34
34
super ( props ) ;
@@ -49,8 +49,6 @@ export class BoardsDropDown extends React.Component<BoardsDropDown.Props> {
49
49
}
50
50
}
51
51
52
- override componentDidMount ( ) : void { }
53
-
54
52
override render ( ) : React . ReactNode {
55
53
return ReactDOM . createPortal ( this . renderNode ( ) , this . dropdownElement ) ;
56
54
}
@@ -299,7 +297,7 @@ function iconNameFromProtocol(protocol: string): string {
299
297
}
300
298
}
301
299
302
- function portLabel ( portName ?: string ) {
300
+ function portLabel ( portName ?: string ) : string {
303
301
return portName
304
302
? nls . localize ( 'arduino/board/portLabel' , 'Port: {0}' , portName )
305
303
: nls . localize ( 'arduino/board/disconnected' , 'Disconnected' ) ;
Original file line number Diff line number Diff line change 653
653
}
654
654
.fa-microchip : before {
655
655
content : "\f2db" ;
656
- }
656
+ }
You can’t perform that action at this time.
0 commit comments