From ccfd100c4cfdb96e318bc2554026fa18365a5199 Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Wed, 1 May 2024 20:28:48 +0200 Subject: [PATCH] Refactor image loading and theme handling in page.tsx --- app/page.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index f6748f9..7f12246 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -4,18 +4,8 @@ import Link from "next/link"; import React from "react"; import Image from "next/image"; import { Typewriter } from "react-simple-typewriter"; -import { useTheme } from "next-themes"; - const { theme, resolvedTheme } = useTheme(); - - const isLight = theme === "light" || resolvedTheme === "light"; - - const imageUrl = isLight - ? "https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/png/proxmox.png" - : "https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/png/proxmox-light.png"; - function page() { - return (