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 @@ -27,7 +27,7 @@ export namespace BoardsDropDown {
27
27
28
28
export class BoardsDropDown extends React . Component < BoardsDropDown . Props > {
29
29
protected dropdownElement : HTMLElement ;
30
- listRef : React . RefObject < HTMLDivElement > ;
30
+ private listRef : React . RefObject < HTMLDivElement > ;
31
31
32
32
constructor ( props : BoardsDropDown . Props ) {
33
33
super ( props ) ;
@@ -48,8 +48,6 @@ export class BoardsDropDown extends React.Component<BoardsDropDown.Props> {
48
48
}
49
49
}
50
50
51
- override componentDidMount ( ) : void { }
52
-
53
51
override render ( ) : React . ReactNode {
54
52
return ReactDOM . createPortal ( this . renderNode ( ) , this . dropdownElement ) ;
55
53
}
@@ -298,7 +296,7 @@ function iconNameFromProtocol(protocol: string): string {
298
296
}
299
297
}
300
298
301
- function portLabel ( portName ?: string ) {
299
+ function portLabel ( portName ?: string ) : string {
302
300
return portName
303
301
? nls . localize ( 'arduino/board/portLabel' , 'Port: {0}' , portName )
304
302
: 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