2017-12-08 06:16:27 +00:00
|
|
|
import React from 'react';
|
|
|
|
import './index.scss';
|
|
|
|
|
|
|
|
const SUBJECT = 'Error!';
|
|
|
|
const DESCRIPTION =
|
2018-02-07 04:28:28 +00:00
|
|
|
'I encountered an error while using MyCrypto. Here are the steps to re-create the issue:\n\nThe full error message:';
|
2017-12-08 06:16:27 +00:00
|
|
|
|
2017-12-16 02:53:27 +00:00
|
|
|
interface Props {
|
|
|
|
error: Error;
|
|
|
|
}
|
|
|
|
|
|
|
|
const ErrorScreen: React.SFC<Props> = ({ error }) => {
|
2017-12-08 06:16:27 +00:00
|
|
|
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"
|
2018-01-10 05:17:52 +00:00
|
|
|
rel="noopener noreferrer"
|
2017-12-08 06:16:27 +00:00
|
|
|
href={`mailto:support@myetherwallet.com?Subject=${SUBJECT}&body=${DESCRIPTION}`}
|
|
|
|
>
|
|
|
|
support@myetherwallet.com
|
|
|
|
</a>{' '}
|
2017-12-16 02:53:27 +00:00
|
|
|
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.
|
2017-12-08 06:16:27 +00:00
|
|
|
</p>
|
2017-12-16 02:53:27 +00:00
|
|
|
<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>
|
2017-12-08 06:16:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ErrorScreen;
|