diff --git a/components/main/input.tsx b/components/main/input.tsx index 836bcd4..448795a 100644 --- a/components/main/input.tsx +++ b/components/main/input.tsx @@ -2,27 +2,24 @@ import * as React from "react"; import { cn } from "@/lib/utils"; -export interface InputProps - extends React.InputHTMLAttributes {} - -const Input = React.forwardRef( +const Input = React.forwardRef>( ({ className, type, ...props }, ref) => { return ( - + className + )} + ref={ref} + {...props} + /> ); } ); diff --git a/components/main/share-your-vision.tsx b/components/main/share-your-vision.tsx index 0daf45d..e9dd833 100644 --- a/components/main/share-your-vision.tsx +++ b/components/main/share-your-vision.tsx @@ -69,7 +69,6 @@ export const ShareYourVision = () => { toast({ title: result.message, variant: "destructive" }); form.reset(); } - window.location.reload(); setLoading(false); }; return ( @@ -85,7 +84,7 @@ export const ShareYourVision = () => { Share your vision - Tell us about your project idea. We'll get back to you soon! + Tell us about your project idea. We'll get back to you soon!