mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-24 12:13:31 +08:00
fix: add more explicit return types (#49567)
This commit is contained in:
@@ -72,7 +72,7 @@ export class Header extends React.Component<
|
||||
}
|
||||
|
||||
// elementToFocus must be a link in the language menu
|
||||
showLanguageMenu(elementToFocus: HTMLButtonElement | null) {
|
||||
showLanguageMenu(elementToFocus: HTMLButtonElement | null): void {
|
||||
this.setState({ isLanguageMenuDisplayed: true }, () =>
|
||||
elementToFocus?.focus()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user