0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 01:12:44 +00:00

proper error page

This commit is contained in:
Víctor Losada Hernández
2024-06-16 17:06:18 +02:00
parent 6e0aff525f
commit f15c831b70
5 changed files with 24 additions and 14 deletions

View File

@@ -5,9 +5,11 @@ const Markdown = require('../../../../shared/naturalcrit/markdown.js');
const ErrorIndex = require('./errors/errorIndex.js');
const ErrorPage = ({ brew })=>{
// Retrieving the error text based on the brew's error code from ErrorIndex
const errorText = ErrorIndex({ brew })[brew.HBErrorCode.toString()] || '';
console.log(errorText);
return (
<UIPage brew={{ title: 'Crit Fail!' }}>
<div className='dataGroup'>