mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 22:39:38 +00:00
Add default colors to errorpage (#786)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { Helmet } from 'react-helmet';
|
import { Helmet } from 'react-helmet';
|
||||||
import { useRouteError } from 'react-router-dom';
|
import { useRouteError } from 'react-router-dom';
|
||||||
|
import importColours, { ColourConstant, ColourVariants } from '../configuration/colours/getColours';
|
||||||
|
|
||||||
// This is not always the correct response
|
// This is not always the correct response
|
||||||
type ErrorType = {
|
type ErrorType = {
|
||||||
@@ -9,6 +10,8 @@ type ErrorType = {
|
|||||||
|
|
||||||
const ErrorPage = () => {
|
const ErrorPage = () => {
|
||||||
const error = useRouteError() as ErrorType;
|
const error = useRouteError() as ErrorType;
|
||||||
|
importColours(ColourConstant.Dark as ColourVariants);
|
||||||
|
|
||||||
console.error('ErrorPage', error);
|
console.error('ErrorPage', error);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user