feat: add dual range slider component and integrate it into dynamic filter for device management
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m49s

This commit is contained in:
2025-06-29 20:46:34 +05:00
parent 4b116df3c0
commit 0157eccd57
4 changed files with 173 additions and 12 deletions

View File

@ -1,10 +1,10 @@
import { redirect } from "next/navigation";
import { getServerSession } from "next-auth";
import { Suspense } from "react";
import { authOptions } from "@/app/auth";
import { DevicesTable } from "@/components/devices-table";
import DynamicFilter from "@/components/generic-filter";
import AddDeviceDialogForm from "@/components/user/add-device-dialog";
import { getServerSession } from "next-auth";
import { redirect } from "next/navigation";
import { Suspense } from "react";
import DevicesTableSkeleton from "./device-table-skeleton";
export default async function Devices({
@ -51,6 +51,13 @@ export default async function Devices({
label: "Vendor",
type: "string",
placeholder: "Enter vendor name",
}, {
label: "Amount of Devices",
name: "amount",
type: "dual-range-slider",
min: 1,
max: 100,
sliderLabel: "MVR"
}
]}
/>