Browse Source

chore(donation-modal.tsx): remove unused useTheme import to clean up code and reduce bundle size

Mathias 1 month ago
parent
commit
474431863e
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/features/workout-session/ui/donation-modal.tsx

+ 0 - 2
src/features/workout-session/ui/donation-modal.tsx

@@ -1,7 +1,6 @@
 "use client";
 
 import { useEffect, useRef } from "react";
-import { useTheme } from "next-themes";
 import { Heart, X, Code, Server, Coffee, Github } from "lucide-react";
 
 import { useI18n } from "locales/client";
@@ -15,7 +14,6 @@ interface DonationModalProps {
 export function DonationModal({ isOpen, onClose }: DonationModalProps) {
   const t = useI18n();
   const modalRef = useRef<HTMLDialogElement>(null);
-  const theme = useTheme();
 
   useEffect(() => {
     const modal = modalRef.current;