fix: update error boundary about GitHub issue data (#3471)
This commit is contained in:
parent
ae1917c818
commit
42d60a644c
@ -91,10 +91,14 @@ const ErrorBoundaryContainer = styled.div`
|
|||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: ${colors.text};
|
color: ${colors.active};
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const PrivacyWarning = styled.span`
|
||||||
|
color: ${colors.text};
|
||||||
|
`;
|
||||||
|
|
||||||
const CopyButton = styled.button`
|
const CopyButton = styled.button`
|
||||||
${buttons.button};
|
${buttons.button};
|
||||||
${buttons.default};
|
${buttons.default};
|
||||||
@ -174,6 +178,16 @@ class ErrorBoundary extends React.Component {
|
|||||||
{t('ui.errorBoundary.reportIt')}
|
{t('ui.errorBoundary.reportIt')}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
{t('ui.errorBoundary.privacyWarning')
|
||||||
|
.split('\n')
|
||||||
|
.map((item, index) => (
|
||||||
|
<>
|
||||||
|
<PrivacyWarning key={index}>{item}</PrivacyWarning>
|
||||||
|
<br />
|
||||||
|
</>
|
||||||
|
))}
|
||||||
|
</p>
|
||||||
<hr />
|
<hr />
|
||||||
<h2>{t('ui.errorBoundary.detailsHeading')}</h2>
|
<h2>{t('ui.errorBoundary.detailsHeading')}</h2>
|
||||||
<p>{errorMessage}</p>
|
<p>{errorMessage}</p>
|
||||||
|
@ -174,8 +174,10 @@ const en = {
|
|||||||
errorBoundary: {
|
errorBoundary: {
|
||||||
title: 'Error',
|
title: 'Error',
|
||||||
details: "There's been an error - please ",
|
details: "There's been an error - please ",
|
||||||
reportIt: 'report it.',
|
reportIt: 'open an issue on GitHub.',
|
||||||
detailsHeading: 'Details',
|
detailsHeading: 'Details',
|
||||||
|
privacyWarning:
|
||||||
|
'Opening an issue pre-populates it with the error message and debugging data.\nPlease verify the information is correct and remove sensitive data if exists.',
|
||||||
recoveredEntry: {
|
recoveredEntry: {
|
||||||
heading: 'Recovered document',
|
heading: 'Recovered document',
|
||||||
warning: 'Please copy/paste this somewhere before navigating away!',
|
warning: 'Please copy/paste this somewhere before navigating away!',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user