ref(TS) Convert some components to TS (#13192)

This commit is contained in:
Robert Pintilii
2023-04-11 12:10:37 +03:00
committed by GitHub
parent 00c3ea07e7
commit 373be54b04
33 changed files with 333 additions and 394 deletions

View File

@@ -0,0 +1,31 @@
import React, { Component } from 'react';
/**
* React component representing unsupported browser page.
*
* @class DefaultUnsupportedDesktopBrowser
*/
class DefaultUnsupportedDesktopBrowser extends Component {
/**
* Redirects to the static recommended browsers page that is also used for IE.
*
* @returns {void}
*/
componentDidMount() {
window.location.pathname = 'static/recommendedBrowsers.html';
}
/**
* Renders the component.
*
* @returns {ReactElement}
*/
render() {
return (
<div />
);
}
}
export default DefaultUnsupportedDesktopBrowser;