fix: move user fetch
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import Title from "@/components/Title"
|
||||
|
||||
import Friend from "./Friend"
|
||||
@@ -7,7 +9,9 @@ import styles from "./overview.module.css"
|
||||
|
||||
import type { OverviewProps } from "@/types/components/myPages/myPage/overview"
|
||||
|
||||
export default function Overview({ user, title }: OverviewProps) {
|
||||
export default async function Overview({ title }: OverviewProps) {
|
||||
const user = await serverClient().user.get()
|
||||
|
||||
return (
|
||||
<section className={styles.container}>
|
||||
<header>
|
||||
|
||||
Reference in New Issue
Block a user