From 817c0c901ffc1200231460b9cbc5d85ddde1d349 Mon Sep 17 00:00:00 2001 From: NikitolProject Date: Sat, 11 Jan 2025 19:30:48 +0300 Subject: [PATCH] Refactor imports in page.tsx and update error handling in contact-form.tsx. Removed unused icon import and changed error variable to a wildcard in the catch block for improved clarity. --- app/page.tsx | 2 +- components/contact-form.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 62da9f2..cd877c5 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,7 +1,7 @@ import Link from "next/link" import { Button } from "@/components/ui/button" import { Card, CardContent } from "@/components/ui/card" -import { Bot, MessageSquare, Brain, ArrowRight } from 'lucide-react' +import { Bot, MessageSquare, ArrowRight } from 'lucide-react' import ContactForm from "@/components/contact-form" import ProductCard from "@/components/product-card" import DotWaves from "@/components/dot-waves" diff --git a/components/contact-form.tsx b/components/contact-form.tsx index 9615054..bce7e81 100644 --- a/components/contact-form.tsx +++ b/components/contact-form.tsx @@ -29,7 +29,7 @@ export default function ContactForm() { setStatus('success'); setFormData({ name: '', email: '', message: '' }); setTimeout(() => setStatus('idle'), 3000); - } catch (error) { + } catch (_error) { setStatus('error'); setTimeout(() => setStatus('idle'), 3000); }