-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpage.tsx
More file actions
27 lines (24 loc) · 1 KB
/
page.tsx
File metadata and controls
27 lines (24 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { getMyBodyInfoAction } from '@/app/actions/body-info';
import { BodyInfoForm } from '@/components/product/size/body-info-form';
import { CloseButton } from '../../components/ui/close-button';
// 내 신체 정보 수정 페이지(마이페이지용)
export default async function BodyInfoPage() {
const result = await getMyBodyInfoAction();
const userInfo =
result.success && result.data?.hasBodyInfo ? result.data : null;
return (
<div className="flex h-full items-center justify-center bg-gray-50">
<div className="flex h-screen w-full max-w-md flex-col overflow-hidden bg-white shadow-lg sm:h-200 sm:rounded-2xl">
<div className="flex h-16 items-center gap-6 px-5">
<CloseButton />
<h1 className="flex-1 pr-10 text-center text-2xl font-semibold">
내 체형 정보 수정
</h1>
</div>
<div className="flex-1 overflow-hidden pt-8">
<BodyInfoForm initialData={userInfo} />
</div>
</div>
</div>
);
}