/* @flow */ 'use strict'; import React from 'react'; import Preloader from './Preloader'; import ConnectDevice from './ConnectDevice'; import InstallBridge from './InstallBridge'; import LocalStorageError from './LocalStorageError'; import TrezorConnectError from './TrezorConnectError'; import Header from '../common/Header'; import Footer from '../common/Footer'; import Log from '../common/Log'; // import { Notification } from '../common/Notification'; import Notifications, { Notification } from '../common/Notification'; import type { Props } from './index'; const BrowserNotSupported = (props: {}): React$Element => { return (

Your browser is not supported

Please choose one of the supported browsers

Google Chrome

Get Chrome

Mozilla Firefox

Get Firefox
) } export default (props: Props) => { const web3 = props.web3; const { devices, browserState, transport } = props.connect; const localStorageError = props.localStorage.error; const connectError = props.connect.error; let notification = null; let body = null; let css: string = 'app landing'; const bridgeRoute: boolean = props.router.location.state.hasOwnProperty('bridge'); if (localStorageError) { notification = (); css += ' config-error'; } else if (browserState.supported === false) { css += ' browser-not-supported' body = ; } else if (connectError || bridgeRoute) { css += ' install-bridge'; body = ; } else if (props.wallet.ready && devices.length < 1) { css += ' connect-device'; body = ; } if (notification || body) { return (
{ notification } { body }
); } else { return (); } }