mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-06-27 15:33:58 +00:00
temporary fix for build and remove previous auth related code
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import { UsersPaymentsTable } from "@/components/admin/user-payments-table";
|
||||
import { AdminAuthGuard } from "@/lib/auth-guard";
|
||||
import React, { Suspense } from "react";
|
||||
|
||||
export default async function UserPayments({
|
||||
@ -12,15 +11,12 @@ export default async function UserPayments({
|
||||
status: string;
|
||||
}>;
|
||||
}) {
|
||||
await AdminAuthGuard();
|
||||
const query = (await searchParams)?.query || "";
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className="flex justify-between items-center border-[1px] rounded-md border-dashed font-bold title-bg py-4 px-2 mb-4">
|
||||
<h3 className="text-sarLinkOrange text-2xl">
|
||||
User Payments
|
||||
</h3>
|
||||
<h3 className="text-sarLinkOrange text-2xl">User Payments</h3>
|
||||
</div>
|
||||
<Suspense key={query} fallback={"loading...."}>
|
||||
<UsersPaymentsTable searchParams={searchParams} />
|
||||
|
Reference in New Issue
Block a user