Skip to content

Commit

Permalink
fix ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
d-ivashchuk committed Apr 10, 2024
1 parent ff4f50b commit fd75d04
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const config = {
argsIgnorePattern: "^_",
},
],
"@typescript-eslint/non-nullable-type-assertion-style": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-misused-promises": [
"error",
Expand Down
19 changes: 9 additions & 10 deletions src/components/ui/textarea.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
import * as React from "react"
import * as React from "react";

import { cn } from "~/lib/utils"
import { cn } from "~/lib/utils";

export interface TextareaProps
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;

const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
({ className, ...props }, ref) => {
return (
<textarea
className={cn(
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
className
className,
)}
ref={ref}
{...props}
/>
)
}
)
Textarea.displayName = "Textarea"
);
},
);
Textarea.displayName = "Textarea";

export { Textarea }
export { Textarea };
1 change: 1 addition & 0 deletions src/server/api/routers/payment-management.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */
import { z } from "zod";

import {
Expand Down

0 comments on commit fd75d04

Please sign in to comment.