mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-22 08:58:55 +00:00
26619e28cc
* working version of test custom rule config * setting no imports to false so tests will pass * adding anchor blank noopener rule, rule currently off to allow tests to pass * removing copied code from tslint-microsoft-contrib * adding tslint-microsoft-contrib to dev deps * extending tslint for external http rule * locking tslint-microsoft-contrib version and turning on target blank noopener rule * final fixes for pull #663 * add noopener noreferrer as needed * fixing false positives for a tags without href * really fix linting errors * fix imports * remove accidently(?) added LedgerNano duplicate file
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import React from 'react';
|
|
import './index.scss';
|
|
|
|
const SUBJECT = 'Error!';
|
|
const DESCRIPTION =
|
|
'I encountered an error while using MyEtherWallet. Here are the steps to re-create the issue:\n\nThe full error message:';
|
|
|
|
interface Props {
|
|
error: Error;
|
|
}
|
|
|
|
const ErrorScreen: React.SFC<Props> = ({ error }) => {
|
|
return (
|
|
<div className="ErrorScreen">
|
|
<div className="ErrorScreen-content">
|
|
<h2>Oops!</h2>
|
|
<p>Something went really wrong, so we're showing you this red error page! 😱</p>
|
|
<p>
|
|
Please contact{' '}
|
|
<a
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
href={`mailto:support@myetherwallet.com?Subject=${SUBJECT}&body=${DESCRIPTION}`}
|
|
>
|
|
support@myetherwallet.com
|
|
</a>{' '}
|
|
if a refresh doesn't fix it (or click it anyway to open a ticket 😊). If you attach the
|
|
following error, you'll make it a ton easier to fix the issue.
|
|
</p>
|
|
<h5>
|
|
Please make sure the error message does not include any sensitive information before
|
|
sending it us. We don't want your private keys!
|
|
</h5>
|
|
<code>{error.message}</code>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default ErrorScreen;
|