feat: my profile - removed all parallel routes * Removed all parallel routes on my-profile * Fixed suspense * Moved components into myprofile folder * Turn off browser cache on myprofile * Clear router cache when editing profile * Clear route cache when adding new credit card * PR fixes Approved-by: Joakim Jäderberg
20 lines
403 B
TypeScript
20 lines
403 B
TypeScript
import { getProfile } from "@/lib/trpc/memoizedRequests"
|
|
|
|
import Form from "@/components/Forms/Edit/Profile"
|
|
|
|
import styles from "./page.module.css"
|
|
|
|
export default async function EditProfileSlot() {
|
|
const user = await getProfile()
|
|
if (!user || "error" in user) {
|
|
return null
|
|
}
|
|
return (
|
|
<>
|
|
<div className={styles.container}>
|
|
<Form user={user} />
|
|
</div>
|
|
</>
|
|
)
|
|
}
|