feat(WEB-169): get profile data from API
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import Container from "../Container"
|
||||
import Form from "./Form"
|
||||
|
||||
import type { ProfileProps } from "@/types/components/myPages/myProfile/profile"
|
||||
|
||||
export default function EditProfile(props: ProfileProps) {
|
||||
export default async function EditProfile() {
|
||||
const user = await serverClient().user.get()
|
||||
return (
|
||||
<Container {...props}>
|
||||
<Form user={props.user} />
|
||||
<Container user={user}>
|
||||
<Form user={user} />
|
||||
</Container>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user