mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-20 23:08:34 +00:00
* Progress commit -- ethereumjs-wallet typings * Add hdkey module + better wallet typing * Add provider-engine typings * Add jsdoc descriptions for hdkey constructor methods * Fix missing return type * Fix another missing return * Make provider engine options optional * Add priv/pubkey members to wallet instance * Turn into SFC + Use ethereumjs-lib * Use proper interface naming for V3Wallet * Switch to ethereumjs-wallet * Switch to ethereumjs-wallet and refactor using NewTabLink * Use proper interface naming for V3Wallet * Use proper interface naming for PublicKeyOnlyWallet * Fix broken test, re-add scryptsy to make this PR pass * Fix definition module for thirdparty wallets * Decrease n-factor to 1024, checksum address of keystore * Update typedef for react-dom from 15 to 16 * Lock react-dom, set typescript to 2.5.2
74 lines
2.1 KiB
TypeScript
74 lines
2.1 KiB
TypeScript
import * as React from 'react';
|
|
import NewTabLink from 'components/ui/NewTabLink';
|
|
import isMobile from 'utils/isMobile';
|
|
|
|
import firefoxIcon from 'assets/images/browsers/firefox.svg';
|
|
import chromeIcon from 'assets/images/browsers/chrome.svg';
|
|
import operaIcon from 'assets/images/browsers/opera.svg';
|
|
import './CryptoWarning.scss';
|
|
|
|
const BROWSERS = [
|
|
{
|
|
name: 'Firefox',
|
|
href: 'https://www.mozilla.org/en-US/firefox/new/',
|
|
icon: firefoxIcon
|
|
},
|
|
{
|
|
name: 'Chrome',
|
|
href: 'https://www.google.com/chrome/browser/desktop/index.html',
|
|
icon: chromeIcon
|
|
},
|
|
{
|
|
name: 'Opera',
|
|
href: 'http://www.opera.com/',
|
|
icon: operaIcon
|
|
}
|
|
];
|
|
|
|
const CryptoWarning: React.SFC<{}> = () => (
|
|
<div className="Tab-content-pane">
|
|
<div className="CryptoWarning">
|
|
<h2 className="CryptoWarning-title">
|
|
Your Browser Cannot Generate a Wallet
|
|
</h2>
|
|
<p className="CryptoWarning-text">
|
|
{isMobile
|
|
? `
|
|
MyEtherWallet requires certain features for secure wallet generation
|
|
that your browser doesn't offer. You can still securely use the site
|
|
otherwise. To generate a wallet, please use your device's default
|
|
browser, or switch to a laptop or desktop computer.
|
|
`
|
|
: `
|
|
MyEtherWallet requires certain features for secure wallet generation
|
|
that your browser doesn't offer. You can still securely use the site
|
|
otherwise. To generate a wallet, upgrade to one of the following
|
|
browsers:
|
|
`}
|
|
</p>
|
|
|
|
<div className="CryptoWarning-browsers">
|
|
{BROWSERS.map(browser => (
|
|
<NewTabLink
|
|
key={browser.href}
|
|
href={browser.href}
|
|
className="CryptoWarning-browsers-browser"
|
|
>
|
|
<div>
|
|
<img
|
|
className="CryptoWarning-browsers-browser-icon"
|
|
src={browser.icon}
|
|
/>
|
|
<div className="CryptoWarning-browsers-browser-name">
|
|
{browser.name}
|
|
</div>
|
|
</div>
|
|
</NewTabLink>
|
|
))}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
export default CryptoWarning;
|