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

@ -12,7 +12,7 @@ import {
AlertDialogTrigger,
} from "@/components/ui/alert-dialog";
import { Button } from "@/components/ui/button";
import type { User } from "@prisma/client";
import type { User } from "@/lib/types/user";
import { Check, CheckCheck } from "lucide-react";
import { useState } from "react";
import { toast } from "sonner";
@ -37,15 +37,20 @@ export function UserVerifyDialog({ user }: { user: User }) {
<AlertDialogDescription>
Are you sure you want to verify the following user?
<span className="inline-block my-4">
<li>Name: {user.name}</li>
<li>
Name: {user.first_name} {user.last_name}
</li>
<li>ID Card: {user.id_card}</li>
<li>Address: {user.address}</li>
<li>DOB: {new Date(user.dob ?? "").toLocaleDateString("en-US", {
month: "short",
day: "2-digit",
year: "numeric",
})}</li>
<li>Phone Number: {user.phoneNumber}</li>
<li>
DOB:{" "}
{new Date(user.dob ?? "").toLocaleDateString("en-US", {
month: "short",
day: "2-digit",
year: "numeric",
})}
</li>
<li>Phone Number: {user.mobile}</li>
</span>
</AlertDialogDescription>
</AlertDialogHeader>
@ -55,7 +60,7 @@ export function UserVerifyDialog({ user }: { user: User }) {
disabled={disabled}
onClick={() => {
setDisabled(true);
toast.promise(VerifyUser(userId), {
toast.promise(VerifyUser(String(userId)), {
loading: "Verifying...",
success: () => {
setDisabled(false);