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.

This commit is contained in:
NikitolProject 2025-01-11 19:30:48 +03:00
parent 68367d3680
commit 817c0c901f
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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);
}