diff --git a/app/grants/page.tsx b/app/grants/page.tsx index 423a6836af6..5cdfabd2b81 100644 --- a/app/grants/page.tsx +++ b/app/grants/page.tsx @@ -48,14 +48,14 @@ function ProgramCard({ title, description, icon, color, arrowColor }: ProgramCar } export default function Page() { + const { resolvedTheme } = useTheme() + const opacity = resolvedTheme === "dark" ? .1 : .5 + const arrowColor = resolvedTheme === "dark" ? "white" : "black" + const particlesInit = useCallback(async (engine: Engine) => { await loadSlim(engine) }, []) - const { theme, setTheme } = useTheme() - const opacity = theme === "dark" ? .1 : .5 - const arrowColor = theme === "dark" ? "white" : "black" - return (