47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
/* @flow */
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import { CHROME, FIREFOX, IE, SAFARI } from './browserLinks';
|
|
|
|
/**
|
|
* React component representing unsupported browser page.
|
|
*
|
|
* @class UnsupportedDesktopBrowser
|
|
*/
|
|
export default class UnsupportedDesktopBrowser extends Component {
|
|
/**
|
|
* Renders the component.
|
|
*
|
|
* @returns {ReactElement}
|
|
*/
|
|
render() {
|
|
const ns = 'unsupported-desktop-browser';
|
|
const nsLink = `${ns}__link`;
|
|
|
|
return (
|
|
<div className = { ns }>
|
|
<h2 className = { `${ns}__title` }>
|
|
It looks like you're using a browser we don't support.
|
|
</h2>
|
|
<p className = { `${ns}__description` }>
|
|
Please try again with the latest version of
|
|
<a
|
|
className = { nsLink }
|
|
href = { CHROME } >Chrome</a>,
|
|
<a
|
|
className = { nsLink }
|
|
href = { FIREFOX }>Firefox</a>,
|
|
<a
|
|
className = { nsLink }
|
|
href = { SAFARI }>Safari</a> or
|
|
<a
|
|
className = { nsLink }
|
|
href = { IE }>IE</a>.
|
|
</p>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|