From fd9fdc5e95c2083898920124df6002aad8785e3b Mon Sep 17 00:00:00 2001 From: David Klakurka Date: Sat, 20 Dec 2025 15:58:01 -0800 Subject: [PATCH] Updated loading spinner colour to use the standard blue --- components/Loading/index.tsx | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/components/Loading/index.tsx b/components/Loading/index.tsx index ef08e829..633a4875 100644 --- a/components/Loading/index.tsx +++ b/components/Loading/index.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect } from 'react' +import React from 'react' import { DotLoader } from 'react-spinners' import style from './loading.module.css' @@ -8,21 +8,10 @@ interface LoadingProps { } export default function Loading ({ size = 60, color }: LoadingProps): React.ReactElement { - const [accentColor, setAccentColor] = useState(color ?? '#0ac18e') - - useEffect(() => { - if (color === undefined) { - const computedColor = getComputedStyle(document.documentElement).getPropertyValue('--accent-color').trim() - if (computedColor !== '') { - setAccentColor(computedColor) - } - } - }, [color]) - return (