2017-12-08 06:16:27 +00:00
|
|
|
import React from 'react';
|
2018-02-27 21:35:32 +00:00
|
|
|
import { NewTabLink } from 'components/ui';
|
2017-12-08 06:16:27 +00:00
|
|
|
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"
|
2018-02-10 19:24:05 +00:00
|
|
|
href={`mailto:support@mycrypto.com?Subject=${SUBJECT}&body=${DESCRIPTION}`}
|
2017-12-08 06:16:27 +00:00
|
|
|
>
|
2018-02-10 19:24:05 +00:00
|
|
|
support@mycrypto.com
|
2017-12-08 06:16:27 +00:00
|
|
|
</a>{' '}
|
2018-02-27 21:35:32 +00:00
|
|
|
if a refresh doesn't fix it (or click it anyway to open a ticket 😊). You can also submit
|
|
|
|
an issue on our{' '}
|
|
|
|
<NewTabLink href="https://github.com/MyCryptoHQ/MyCrypto/issues">
|
|
|
|
GitHub Repository
|
|
|
|
</NewTabLink>. Please attach the following error to help our team solve your issue.
|
2017-12-08 06:16:27 +00:00
|
|
|
</p>
|
2018-02-27 21:35:32 +00:00
|
|
|
<code>{error.message}</code>
|
2017-12-16 02:53:27 +00:00
|
|
|
<h5>
|
|
|
|
Please make sure the error message does not include any sensitive information before
|
2018-02-27 21:35:32 +00:00
|
|
|
sending it to us. We don't want your private keys!
|
2017-12-16 02:53:27 +00:00
|
|
|
</h5>
|
2017-12-08 06:16:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ErrorScreen;
|