mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
something
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { getUserByUUID } from "@src/actions/userActions";
|
import { getUserByUUID } from "@actions/userActions";
|
||||||
import { NextPage } from "next";
|
import { NextPage } from "next";
|
||||||
import { Herr_Von_Muellerhoff } from "next/font/google";
|
import { Herr_Von_Muellerhoff } from "next/font/google";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
@@ -7,7 +7,8 @@ import {db} from "@db/index";
|
|||||||
|
|
||||||
export default function UserProfilePage() {
|
export default function UserProfilePage() {
|
||||||
const router = useRouter();
|
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);
|
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(() => {
|
useEffect(() => {
|
||||||
@@ -24,11 +25,12 @@ if (!user) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-4 pt-16 mx-auto max-w-screen-lg">
|
<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">
|
<div className="grid grid-cols-1 md:grid-cols-2 gap-8 mb-8">
|
||||||
|
|
||||||
{/* Product Info */}
|
{/* Product Info */}
|
||||||
<div>
|
<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 */}
|
{/* Vendor Pricing Table */}
|
||||||
<div className="bg-white rounded-lg shadow-md p-4 mb-6">
|
<div className="bg-white rounded-lg shadow-md p-4 mb-6">
|
||||||
|
|||||||
Reference in New Issue
Block a user