You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UnsupportedDesktopBrowser.js 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* @flow */
  2. import React, { Component } from 'react';
  3. import { translate } from '../../base/i18n';
  4. import { CHROME, FIREFOX } from './browserLinks';
  5. /**
  6. * The namespace of the CSS styles of UnsupportedDesktopBrowser.
  7. *
  8. * @private
  9. * @type {string}
  10. */
  11. const _SNS = 'unsupported-desktop-browser';
  12. /**
  13. * The type of the React {@code Component} props of
  14. * {@link UnsupportedDesktopBrowser}.
  15. */
  16. type Props = {
  17. /**
  18. * The function to translate human-readable text.
  19. */
  20. t: Function
  21. };
  22. /**
  23. * React component representing unsupported browser page.
  24. *
  25. * @class UnsupportedDesktopBrowser
  26. */
  27. class UnsupportedDesktopBrowser extends Component<Props> {
  28. /**
  29. * Renders the component.
  30. *
  31. * @returns {ReactElement}
  32. */
  33. render() {
  34. return (
  35. <div className = { _SNS }>
  36. <h2 className = { `${_SNS}__title` }>
  37. It looks like you're using a browser we don't support.
  38. </h2>
  39. <p className = { `${_SNS}__description` }>
  40. Please try again with the latest version of&nbsp;
  41. <a
  42. className = { `${_SNS}__link` }
  43. href = { CHROME } >Chrome</a> and&nbsp;
  44. <a
  45. className = { `${_SNS}__link` }
  46. href = { FIREFOX }>Firefox</a>
  47. </p>
  48. </div>
  49. );
  50. }
  51. }
  52. export default translate(UnsupportedDesktopBrowser);