something

This commit is contained in:
2025-01-17 22:30:18 -05:00
parent c0f582a346
commit 84fc1983c9

View File

@@ -1,4 +1,4 @@
import { getUserByUUID } from "@src/actions/userActions";
import { getUserByUUID } from "@actions/userActions";
import { NextPage } from "next";
import { Herr_Von_Muellerhoff } from "next/font/google";
import { useRouter } from "next/router";
@@ -7,7 +7,8 @@ import {db} from "@db/index";
export default function UserProfilePage() {
const router = useRouter();
const { uuid } = router.query;
// const { uuid } = router.query;
const uuid = "8ad8da5e-1ecd-402b-8211-bc93f2c3331a";
const [user, setUser] = useState<{ uuid: string | null; id: string; username: string; email: string; emailVerifiedOn: Date | null; password_hash: string; first_name: string | null; last_name: string | null; full_name: string | null; buildPrivacySetting: string | null; }[] | null>(null);
useEffect(() => {
@@ -24,11 +25,12 @@ if (!user) {
return (
<div className="p-4 pt-16 mx-auto max-w-screen-lg">
{user[0].first_name}
<div className="grid grid-cols-1 md:grid-cols-2 gap-8 mb-8">
{/* Product Info */}
<div>
<h1 className="text-3xl font-bold mb-4">{user[0].first_name}</h1>
<h1 className="text-3xl font-bold mb-4">{user[0].first_name} anything else</h1>
{/* Vendor Pricing Table */}
<div className="bg-white rounded-lg shadow-md p-4 mb-6">