feat(verify-user): add link to view user agreement and improve layout for user information
Some checks are pending
Build and Push Docker Images / Build and Push Docker Images (push) Has started running

This commit is contained in:
2025-07-25 10:58:39 +05:00
parent c2578f1c8f
commit eadd790fe1
2 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import { FileTextIcon, PencilIcon } from "lucide-react";
import { EyeIcon, FileTextIcon, PencilIcon } from "lucide-react";
import Image from "next/image";
import Link from "next/link";
import { redirect } from "next/navigation";
@ -41,10 +41,10 @@ export default async function VerifyUserPage({
return (
<div>
<div className="flex items-center justify-between text-gray-500 text-2xl font-bold title-bg py-4 px-2 mb-4">
<div className="flex flex-wrap gap-2 items-center justify-between text-gray-500 text-2xl font-bold title-bg py-4 px-2 mb-4">
<h3 className="text-sarLinkOrange text-2xl">User Information</h3>
<div className="flex gap-2">
<div className="flex flex-wrap gap-2">
{dbUser && !dbUser?.verified && <UserVerifyDialog user={dbUser} />}
{dbUser && !dbUser?.verified && <UserRejectDialog user={dbUser} />}
<Link href={'update'}>
@ -59,6 +59,12 @@ export default async function VerifyUserPage({
Update Agreement
</Button>
</Link>
<Link href={dbUser?.agreement || "#"} target="_blank" rel="noopener noreferrer">
<Button className="hover:cursor-pointer">
<EyeIcon />
View Agreement
</Button>
</Link>
{dbUser?.verified && (
<Badge variant={"secondary"} className="bg-lime-500">
Verified

View File

@ -45,6 +45,7 @@ export interface UserProfile {
address: string;
acc_no: string;
id_card: string;
agreement: string;
}
export interface Session {