TEMPORARY FIX TO TEST BUILD
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m15s

This commit is contained in:
2025-04-10 23:18:19 +05:00
parent e8296ae3f6
commit b932fcf03c
49 changed files with 8314 additions and 8858 deletions

View File

@ -1,18 +1,18 @@
import {
Table,
TableBody,
TableCaption,
TableCell,
TableFooter,
TableHead,
TableHeader,
TableRow,
} from "@/components/ui/table";
import { headers } from "next/headers";
import Link from "next/link";
import BlockDeviceDialog from "../block-device-dialog";
import DeviceCard from "../device-card";
import Pagination from "../pagination";
// import {
// Table,
// TableBody,
// TableCaption,
// TableCell,
// TableFooter,
// TableHead,
// TableHeader,
// TableRow,
// } from "@/components/ui/table";
// import { headers } from "next/headers";
// import Link from "next/link";
// import BlockDeviceDialog from "../block-device-dialog";
// import DeviceCard from "../device-card";
// import Pagination from "../pagination";
export async function AdminDevicesTable({
searchParams,
@ -25,12 +25,14 @@ export async function AdminDevicesTable({
}>;
parentalControl?: boolean;
}) {
console.log(parentalControl);
// const session = await auth.api.getSession({
// headers: await headers(),
// });
// const isAdmin = session?.user.role === "ADMIN";
// const query = (await searchParams)?.query || "";
// const page = (await searchParams)?.page;
const query = (await searchParams)?.query || "";
const page = (await searchParams)?.page;
console.log(query, page);
// const sortBy = (await searchParams)?.sortBy || "asc";
// const totalDevices = await prisma.device.count({
// where: {

View File

@ -1,17 +1,17 @@
import Pagination from "@/components/pagination";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import {
Table,
TableBody,
TableCaption,
TableCell,
TableFooter,
TableHead,
TableHeader,
TableRow,
} from "@/components/ui/table";
import Link from "next/link";
// import Pagination from "@/components/pagination";
// import { Badge } from "@/components/ui/badge";
// import { Button } from "@/components/ui/button";
// import {
// Table,
// TableBody,
// TableCaption,
// TableCell,
// TableFooter,
// TableHead,
// TableHeader,
// TableRow,
// } from "@/components/ui/table";
// import Link from "next/link";
export async function UsersPaymentsTable({
searchParams,
@ -24,8 +24,9 @@ export async function UsersPaymentsTable({
}>;
}) {
const query = (await searchParams)?.query || "";
const page = (await searchParams)?.page;
const sortBy = (await searchParams)?.sortBy || "asc";
console.log(query);
// const page = (await searchParams)?.page;
// const sortBy = (await searchParams)?.sortBy || "asc";
// const totalPayments = await prisma.payment.count({
// where: {
// OR: [