From 33781a733ce4e6bcb2801763426ffaf100958bcf Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Thu, 19 Sep 2024 19:50:43 -0400 Subject: [PATCH] fix build errors --- package.json | 2 +- src/components/dashboard/sidebar/organization-selector.tsx | 2 +- src/components/ui/command.tsx | 2 +- src/components/ui/input.tsx | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 7164c02..37c4d19 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@types/node": "^22.0.0", "@types/react": "^18", "@types/react-dom": "^18", - "eslint": "^9.0.0", + "eslint": "^8", "eslint-config-next": "14.2.12", "postcss": "^8", "tailwindcss": "^3.4.1", diff --git a/src/components/dashboard/sidebar/organization-selector.tsx b/src/components/dashboard/sidebar/organization-selector.tsx index dd945e5..e686b9e 100644 --- a/src/components/dashboard/sidebar/organization-selector.tsx +++ b/src/components/dashboard/sidebar/organization-selector.tsx @@ -58,7 +58,7 @@ const OrganizationSelector = (): ReactElement => { if (!toSelect && organizations.length > 0) { setSelectedOrganization(organizations[0].snowflake); } - }, [organizations, selectedOrganization]); + }, [organizations, selectedOrganization, setSelectedOrganization]); /** * Handle selecting an organization. diff --git a/src/components/ui/command.tsx b/src/components/ui/command.tsx index dda4c34..a606826 100644 --- a/src/components/ui/command.tsx +++ b/src/components/ui/command.tsx @@ -23,7 +23,7 @@ const Command = React.forwardRef< )); Command.displayName = CommandPrimitive.displayName; -interface CommandDialogProps extends DialogProps {} +type CommandDialogProps = DialogProps; const CommandDialog = ({ children, ...props }: CommandDialogProps) => { return ( diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx index e2cb807..181f9e5 100644 --- a/src/components/ui/input.tsx +++ b/src/components/ui/input.tsx @@ -2,8 +2,7 @@ import * as React from "react"; import { cn } from "@/lib/utils"; -export interface InputProps - extends React.InputHTMLAttributes {} +export type InputProps = React.InputHTMLAttributes; const Input = React.forwardRef( ({ className, type, ...props }, ref) => {