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:
parent
68367d3680
commit
817c0c901f
@ -1,7 +1,7 @@
|
|||||||
import Link from "next/link"
|
import Link from "next/link"
|
||||||
import { Button } from "@/components/ui/button"
|
import { Button } from "@/components/ui/button"
|
||||||
import { Card, CardContent } from "@/components/ui/card"
|
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 ContactForm from "@/components/contact-form"
|
||||||
import ProductCard from "@/components/product-card"
|
import ProductCard from "@/components/product-card"
|
||||||
import DotWaves from "@/components/dot-waves"
|
import DotWaves from "@/components/dot-waves"
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export default function ContactForm() {
|
|||||||
setStatus('success');
|
setStatus('success');
|
||||||
setFormData({ name: '', email: '', message: '' });
|
setFormData({ name: '', email: '', message: '' });
|
||||||
setTimeout(() => setStatus('idle'), 3000);
|
setTimeout(() => setStatus('idle'), 3000);
|
||||||
} catch (error) {
|
} catch (_error) {
|
||||||
setStatus('error');
|
setStatus('error');
|
||||||
setTimeout(() => setStatus('idle'), 3000);
|
setTimeout(() => setStatus('idle'), 3000);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user