fix(blockTools): Update error defaults.

This commit is contained in:
Gervwyk 2021-04-26 11:53:16 +02:00
parent 9775e24273
commit cc02a89571
2 changed files with 10 additions and 4 deletions

View File

@ -45,8 +45,10 @@ const ErrorPage = ({ code, description, message, name }) => (
borderLeft: '1px solid #aeaeae',
}}
>
<div style={{ fontSize: '1.3em', fontWeight: '300', paddingBottom: 10 }}>{name}</div>
<div style={{ fontSize: '0.9em' }}>{message}</div>
<div style={{ fontSize: '1.3em', fontWeight: '300', paddingBottom: 10 }}>
{name || 'Error'}
</div>
<div style={{ fontSize: '0.9em' }}>{message || 'An error has occurred.'}</div>
<div style={{ fontSize: '0.9em' }}>{description}</div>
<div style={{ paddingTop: 20 }}>
<a href="/">Return to home page</a>

View File

@ -69,14 +69,18 @@ test('default', () => {
"paddingBottom": 10,
}
}
/>
>
Error
</div>
<div
style={
Object {
"fontSize": "0.9em",
}
}
/>
>
An error has occurred.
</div>
<div
style={
Object {