diff --git a/src/app/account/UserSettings.tsx b/src/app/account/UserSettings.tsx index 9d38a40..cd8470f 100644 --- a/src/app/account/UserSettings.tsx +++ b/src/app/account/UserSettings.tsx @@ -1,7 +1,7 @@ "use client"; import UpdateNameCard from "./UpdateNameCard"; import UpdateEmailCard from "./UpdateEmailCard"; -import { AuthSession } from "@/lib/auth/utils"; +import { type AuthSession } from "@/lib/auth/utils"; export default function UserSettings({ session, diff --git a/src/app/api/auth/[...nextauth]/route.ts b/src/app/api/auth/[...nextauth]/route.ts index f9f233c..1e615d9 100644 --- a/src/app/api/auth/[...nextauth]/route.ts +++ b/src/app/api/auth/[...nextauth]/route.ts @@ -1,4 +1,4 @@ -import { DefaultSession } from "next-auth"; +import { type DefaultSession } from "next-auth"; import NextAuth from "next-auth/next"; import { authOptions } from "@/lib/auth/utils"; diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 8888321..760b8d3 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -3,7 +3,7 @@ import Link from "next/link"; import SidebarItems from "./SidebarItems"; import { Avatar, AvatarFallback } from "./ui/avatar"; -import { AuthSession, getUserAuth } from "@/lib/auth/utils"; +import { type AuthSession, getUserAuth } from "@/lib/auth/utils"; const Sidebar = async () => { const session = await getUserAuth(); diff --git a/src/components/SidebarItems.tsx b/src/components/SidebarItems.tsx index 2569741..a7db71c 100644 --- a/src/components/SidebarItems.tsx +++ b/src/components/SidebarItems.tsx @@ -3,7 +3,7 @@ import Link from "next/link"; import { usePathname } from "next/navigation"; -import { LucideIcon } from "lucide-react"; +import { type LucideIcon } from "lucide-react"; import { cn } from "@/lib/utils"; import { defaultLinks, additionalLinks } from "@/config/nav"; diff --git a/src/components/devices/DeviceForm.tsx b/src/components/devices/DeviceForm.tsx index 4c24825..ea0fb90 100644 --- a/src/components/devices/DeviceForm.tsx +++ b/src/components/devices/DeviceForm.tsx @@ -1,6 +1,6 @@ "use client"; -import { Device, NewDeviceParams, insertDeviceParams } from "@/server/db/schema/devices"; +import { type Device, type NewDeviceParams, insertDeviceParams } from "@/server/db/schema/devices"; import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; @@ -15,7 +15,7 @@ import { import { Input } from "@/components/ui/input"; import { api as trpc } from "@/trpc/react"; import { Button } from "@/components/ui/button"; -import { z } from "zod"; +import { type z } from "zod"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { useRouter } from "next/navigation"; import { useToast } from "@/components/ui/use-toast"; diff --git a/src/components/devices/DeviceList.tsx b/src/components/devices/DeviceList.tsx index 04cdd86..f4cd219 100644 --- a/src/components/devices/DeviceList.tsx +++ b/src/components/devices/DeviceList.tsx @@ -1,5 +1,5 @@ "use client"; -import { CompleteDevice } from "@/server/db/schema/devices"; +import { type CompleteDevice } from "@/server/db/schema/devices"; import { api as trpc } from "@/trpc/react"; import DeviceModal from "./DeviceModal"; diff --git a/src/components/devices/DeviceModal.tsx b/src/components/devices/DeviceModal.tsx index e85aecb..12b1f81 100644 --- a/src/components/devices/DeviceModal.tsx +++ b/src/components/devices/DeviceModal.tsx @@ -10,7 +10,7 @@ import { DialogTrigger, } from "../ui/dialog"; import DeviceForm from "./DeviceForm"; -import { Device } from "@/server/db/schema/devices"; +import { type Device } from "@/server/db/schema/devices"; export default function DeviceModal({ device, diff --git a/src/components/maps/main-map.tsx b/src/components/maps/main-map.tsx index 716f0c4..9f97d2e 100644 --- a/src/components/maps/main-map.tsx +++ b/src/components/maps/main-map.tsx @@ -3,9 +3,9 @@ import "leaflet/dist/leaflet.css"; import React from "react"; import { MapContainer, TileLayer } from "react-leaflet"; import MapMarker from "@/components/maps/map-marker"; -import { Child, type CompleteChild } from "@/server/db/schema/children"; -import { Ping } from "@/server/db/schema/pings"; -import { Device } from "@/server/db/schema/devices"; +import { type Child, type CompleteChild } from "@/server/db/schema/children"; +import { type Ping } from "@/server/db/schema/pings"; +import { type Device } from "@/server/db/schema/devices"; import { getLatestPing } from "@/lib/helpers/location/ping"; type MainMapProps = { diff --git a/src/components/pages/dashboard-page.tsx b/src/components/pages/dashboard-page.tsx index 6d3b5b3..03e8f71 100644 --- a/src/components/pages/dashboard-page.tsx +++ b/src/components/pages/dashboard-page.tsx @@ -3,7 +3,7 @@ import React from "react"; import dynamic from "next/dynamic"; import ChildrenFilter from "../children/children-filter"; import { MapViewTypeSelector } from "../maps/map-viewtype-selector"; -import { CompleteChild } from "@/server/db/schema/children"; +import { type CompleteChild } from "@/server/db/schema/children"; type DashboardPageProps = { children: CompleteChild[]; diff --git a/src/components/ui/form.tsx b/src/components/ui/form.tsx index 4603f8b..7a72609 100644 --- a/src/components/ui/form.tsx +++ b/src/components/ui/form.tsx @@ -1,11 +1,11 @@ import * as React from "react" -import * as LabelPrimitive from "@radix-ui/react-label" +import type * as LabelPrimitive from "@radix-ui/react-label" import { Slot } from "@radix-ui/react-slot" import { Controller, - ControllerProps, - FieldPath, - FieldValues, + type ControllerProps, + type FieldPath, + type FieldValues, FormProvider, useFormContext, } from "react-hook-form" diff --git a/src/components/ui/pagination.tsx b/src/components/ui/pagination.tsx index ea40d19..251bb6a 100644 --- a/src/components/ui/pagination.tsx +++ b/src/components/ui/pagination.tsx @@ -2,7 +2,7 @@ import * as React from "react" import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react" import { cn } from "@/lib/utils" -import { ButtonProps, buttonVariants } from "@/components/ui/button" +import { type ButtonProps, buttonVariants } from "@/components/ui/button" const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => (