feat(WEB-154): my profile view
This commit is contained in:
36
app/[lang]/(live)/(protected)/my-pages/profile/page.tsx
Normal file
36
app/[lang]/(live)/(protected)/my-pages/profile/page.tsx
Normal file
@@ -0,0 +1,36 @@
|
||||
import { serverClient } from "@/lib/trpc/server";
|
||||
import { extendedUser } from "../_constants";
|
||||
|
||||
import CommunicationPreferences from "@/components/MyProfile/CommunicationPreferences";
|
||||
import CreditCards from "@/components/MyProfile/CreditCards";
|
||||
import MaxWidth from "@/components/MaxWidth";
|
||||
import MembershipCard from "@/components/MyProfile/MembershipCard";
|
||||
import Password from "@/components/MyProfile/Password";
|
||||
import Profile from "@/components/MyProfile/Profile";
|
||||
import Wishes from "@/components/MyProfile/Wishes";
|
||||
|
||||
import styles from "./page.module.css"
|
||||
import Modal from "@/components/Modal";
|
||||
|
||||
export default async function MyProfile() {
|
||||
const data = await serverClient().user.get()
|
||||
const user = {
|
||||
...data,
|
||||
...extendedUser,
|
||||
}
|
||||
return (
|
||||
<MaxWidth className={styles.page} tag="main">
|
||||
<Modal>
|
||||
<h1>HALLÅ ELLER!?!</h1>
|
||||
</Modal>
|
||||
<Profile user={user} />
|
||||
<section className={styles.cards}>
|
||||
<CommunicationPreferences />
|
||||
<Wishes />
|
||||
<MembershipCard />
|
||||
<CreditCards />
|
||||
<Password />
|
||||
</section>
|
||||
</MaxWidth>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user