Skip to content

Commit

Permalink
fix: eslint comp/ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Boutzi committed Oct 7, 2024
1 parent 604bf77 commit beb9d1f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
19 changes: 13 additions & 6 deletions app/_components/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,43 @@ export const Form = () => {
<div className="flex flex-col gap-4 mt-8">
<div className="flex gap-4 max-lg:flex-col">
<div className="flex flex-[2] flex-col gap-1">
<label className="text-xs">First Name</label>
<label htmlFor="first-name" className="text-xs">First Name</label>
<Input
id="first-name"
className="flex-1 rounded-lg p-3 hover:bg-accent/20"
required
/>
</div>
<div className="flex flex-[2] flex-col gap-1">
<label className="text-xs">Last Name</label>
<label htmlFor="last-name" className="text-xs">Last Name</label>
<Input
id="last-name"
className="flex-1 rounded-lg p-3 hover:bg-accent/20"
required
/>
</div>
</div>
<div className="flex gap-4 max-lg:flex-col">
<div className="flex flex-[2] flex-col gap-1">
<label className="text-xs">Email</label>
<label htmlFor="email" className="text-xs">Email</label>
<Input
id="email"
className="flex-1 rounded-lg p-3 hover:bg-accent/20"
required
/>
</div>
<div className="flex flex-[2] flex-col gap-1">
<label className="text-xs">Company</label>
<Input className="flex-1 rounded-lg p-3 hover:bg-accent/20" />
<label htmlFor="company" className="text-xs">Company</label>
<Input
id="company"
className="flex-1 rounded-lg p-3 hover:bg-accent/20"
/>
</div>
</div>
<div className="flex flex-[2] flex-col gap-1">
<label className="text-xs">Your message</label>
<label htmlFor="message" className="text-xs">Your message</label>
<Textarea
id="message"
placeholder="Type your message here."
className="flex-1 rounded-lg p-3 hover:bg-accent/20 resize-y min-h-[130px]"
required
Expand Down
1 change: 1 addition & 0 deletions app/_components/ui/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as React from "react"

import { cn } from "@/lib/utils"

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface InputProps
extends React.InputHTMLAttributes<HTMLInputElement> {}

Expand Down
1 change: 1 addition & 0 deletions app/_components/ui/textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as React from "react"

import { cn } from "@/lib/utils"

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface TextareaProps
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}

Expand Down

0 comments on commit beb9d1f

Please sign in to comment.