Skip to content

Commit

Permalink
fix: improve input component formatting and update dialog description…
Browse files Browse the repository at this point in the history
… text
  • Loading branch information
CuriousCoder00 committed Nov 4, 2024
1 parent e26c463 commit 20b71e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
23 changes: 10 additions & 13 deletions components/main/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,24 @@
import * as React from "react";
import { cn } from "@/lib/utils";

export interface InputProps
extends React.InputHTMLAttributes<HTMLInputElement> {}

const Input = React.forwardRef<HTMLInputElement, InputProps>(
const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>(
({ className, type, ...props }, ref) => {
return (
<input
type={type}
className={cn(
`flex h-10 w-full border-none bg-slate-950 text-white shadow-input rounded-xl px-3 py-2 text-sm file:border-0 file:bg-transparent
<input
type={type}
className={cn(
`flex h-10 w-full border-none bg-slate-950 text-white shadow-input rounded-xl px-3 py-2 text-sm file:border-0 file:bg-transparent
file:text-sm file:font-medium placeholder:text-neutral-400 placeholder-text-neutral-600
focus-visible:outline-none focus-visible:ring-[2px]
disabled:cursor-not-allowed disabled:opacity-50
shadow-[0px_0px_1px_1px_var(--neutral-700)]
group-hover/input:shadow-none transition duration-400
`,
className
)}
ref={ref}
{...props}
/>
className
)}
ref={ref}
{...props}
/>
);
}
);
Expand Down
3 changes: 1 addition & 2 deletions components/main/share-your-vision.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export const ShareYourVision = () => {
toast({ title: result.message, variant: "destructive" });
form.reset();
}
window.location.reload();
setLoading(false);
};
return (
Expand All @@ -85,7 +84,7 @@ export const ShareYourVision = () => {
Share your vision
</DialogTitle>
<DialogDescription className="text-gray-500">
Tell us about your project idea. We'll get back to you soon!
Tell us about your project idea. We&apos;ll get back to you soon!
</DialogDescription>
</DialogHeader>
<Form {...form}>
Expand Down

0 comments on commit 20b71e4

Please sign in to comment.