Add default colors to errorpage (#786)

This commit is contained in:
Merlin
2024-08-23 18:28:07 +02:00
committed by GitHub
parent 3aea299889
commit 867ed999ee

View File

@@ -1,5 +1,6 @@
import { Helmet } from 'react-helmet';
import { useRouteError } from 'react-router-dom';
import importColours, { ColourConstant, ColourVariants } from '../configuration/colours/getColours';
// This is not always the correct response
type ErrorType = {
@@ -9,6 +10,8 @@ type ErrorType = {
const ErrorPage = () => {
const error = useRouteError() as ErrorType;
importColours(ColourConstant.Dark as ColourVariants);
console.error('ErrorPage', error);
return (