diff --git a/app/(dashboard)/devices/page.tsx b/app/(dashboard)/devices/page.tsx
index b29e715..cb87c88 100644
--- a/app/(dashboard)/devices/page.tsx
+++ b/app/(dashboard)/devices/page.tsx
@@ -1,11 +1,10 @@
import { authOptions } from "@/app/auth";
import { DevicesTable } from "@/components/devices-table";
import DeviceFilter from "@/components/devices/device-filter";
-import Search from "@/components/search";
import AddDeviceDialogForm from "@/components/user/add-device-dialog";
import { getServerSession } from "next-auth";
import { redirect } from "next/navigation";
-import React, { Suspense } from "react";
+import { Suspense } from "react";
import DevicesTableSkeleton from "./device-table-skeleton";
export default async function Devices({
@@ -28,7 +27,7 @@ export default async function Devices({
diff --git a/components/ui/alert-dialog.tsx b/components/ui/alert-dialog.tsx
index 57760f2..efbb8af 100644
--- a/components/ui/alert-dialog.tsx
+++ b/components/ui/alert-dialog.tsx
@@ -1,10 +1,10 @@
"use client"
-import * as React from "react"
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"
+import * as React from "react"
-import { cn } from "@/lib/utils"
import { buttonVariants } from "@/components/ui/button"
+import { cn } from "@/lib/utils"
const AlertDialog = AlertDialogPrimitive.Root
@@ -36,7 +36,7 @@ const AlertDialogContent = React.forwardRef<
}
- )
-}
-
-type ChartContextProps = {
- config: ChartConfig
-}
-
-const ChartContext = React.createContext(null)
-
-function useChart() {
- const context = React.useContext(ChartContext)
-
- if (!context) {
- throw new Error("useChart must be used within a ")
- }
-
- return context
-}
-
-const ChartContainer = React.forwardRef<
- HTMLDivElement,
- React.ComponentProps<"div"> & {
- config: ChartConfig
- children: React.ComponentProps<
- typeof RechartsPrimitive.ResponsiveContainer
- >["children"]
- }
->(({ id, className, children, config, ...props }, ref) => {
- const uniqueId = React.useId()
- const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`
-
- return (
-
-
-
-
- {children}
-
-
-
- )
-})
-ChartContainer.displayName = "Chart"
-
-const ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => {
- const colorConfig = Object.entries(config).filter(
- ([, config]) => config.theme || config.color
- )
-
- if (!colorConfig.length) {
- return null
- }
-
- return (
-