mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 21:29:36 +00:00
Add default colors to errorpage (#786)
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user