From 867ed999ee64de17c297f1b3680aaa59d2d920e6 Mon Sep 17 00:00:00 2001 From: Merlin <4706504+MerlinScheurer@users.noreply.github.com> Date: Fri, 23 Aug 2024 18:28:07 +0200 Subject: [PATCH] Add default colors to errorpage (#786) --- frontend/src/pages/ErrorPage.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/pages/ErrorPage.tsx b/frontend/src/pages/ErrorPage.tsx index 1f7f6062..75ae2bb2 100644 --- a/frontend/src/pages/ErrorPage.tsx +++ b/frontend/src/pages/ErrorPage.tsx @@ -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 (