diff --git a/app/(dashboard)/devices/page.tsx b/app/(dashboard)/devices/page.tsx index 028e529..a3756a9 100644 --- a/app/(dashboard)/devices/page.tsx +++ b/app/(dashboard)/devices/page.tsx @@ -1,15 +1,37 @@ -import { auth } from "@/lib/auth"; -import { headers } from "next/headers"; - -export default async function Devices() { - const session = await auth.api.getSession({ - headers: await headers(), - }); +import { DevicesTable } from "@/components/devices-table"; +import Search from "@/components/search"; +import { Button } from "@/components/ui/button"; +import React, { Suspense } from "react"; +export default async function Devices({ + searchParams, +}: { + searchParams: Promise<{ + query: string; + page: number; + sortBy: string; + status: string; + }>; +}) { return (
-

Server session

-
{JSON.stringify(session?.user, null, 2)}
+
+

+ My Devices +

+ +
+ +
+ + +
+ + +
); } diff --git a/app/(dashboard)/user-devices/page.tsx b/app/(dashboard)/user-devices/page.tsx index f874294..1761967 100644 --- a/app/(dashboard)/user-devices/page.tsx +++ b/app/(dashboard)/user-devices/page.tsx @@ -1,5 +1,54 @@ -import React from "react"; +import Filter from "@/components/filter"; +import Search from "@/components/search"; +import { UsersTable } from "@/components/user-table"; +import { CheckCheck, Hourglass, Minus } from "lucide-react"; +import React, { Suspense } from "react"; +export default async function UserDevcies({ + searchParams, +}: { + searchParams: Promise<{ + query: string; + page: number; + sortBy: string; + status: string; + }>; +}) { -export default function UserDevices() { - return
UserDevices
; + return ( +
+

+ My Devices +

+
+ + , + }, + { + value: "unverified", + label: "Unverfieid", + icon: , + }, + { + value: "verified", + label: "Verified", + icon: , + }, + ]} + defaultOption="all" + queryParamKey="status" + /> +
+ + + +
+ ); } diff --git a/app/(dashboard)/users/page.tsx b/app/(dashboard)/users/page.tsx index a69f105..e859d1b 100644 --- a/app/(dashboard)/users/page.tsx +++ b/app/(dashboard)/users/page.tsx @@ -18,35 +18,38 @@ export default async function AdminUsers({ return (
-

+

Users

- - , - }, - { - value: "unverified", - label: "Unverfieid", - icon: , - }, - { - value: "verified", - label: "Verified", - icon: , - }, - ]} - defaultOption="all" - queryParamKey="status" - /> +
+ + , + }, + { + value: "unverified", + label: "Unverfieid", + icon: , + }, + { + value: "verified", + label: "Verified", + icon: , + }, + ]} + defaultOption="all" + queryParamKey="status" + /> +
+
diff --git a/app/globals.css b/app/globals.css index 2e24797..c81b359 100644 --- a/app/globals.css +++ b/app/globals.css @@ -89,6 +89,5 @@ body { .title-bg { - background-color: #fefefe; background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c1d3c8' fill-opacity='0.21' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E"); } \ No newline at end of file diff --git a/app/layout.tsx b/app/layout.tsx index 4de9a08..18f7a91 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -13,8 +13,8 @@ const barlow = Barlow({ }); export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", + title: "SAR Link Portal", + description: "Sarlink Portal", }; export default function RootLayout({ diff --git a/components/auth/application-layout.tsx b/components/auth/application-layout.tsx index 2675cad..59560c5 100644 --- a/components/auth/application-layout.tsx +++ b/components/auth/application-layout.tsx @@ -50,7 +50,7 @@ export async function ApplicationLayout({
-
{children}
+
{children}
); diff --git a/components/auth/login-form.tsx b/components/auth/login-form.tsx index f7d86de..57a71b1 100644 --- a/components/auth/login-form.tsx +++ b/components/auth/login-form.tsx @@ -33,7 +33,7 @@ export default function LoginForm() {

{state.message}

)} diff --git a/components/auth/verify-otp-form.tsx b/components/auth/verify-otp-form.tsx index 68253b4..9cd9aba 100644 --- a/components/auth/verify-otp-form.tsx +++ b/components/auth/verify-otp-form.tsx @@ -53,7 +53,7 @@ export default function VerifyOTPForm({ return (
@@ -71,7 +71,7 @@ export default function VerifyOTPForm({ )}