Merged in feat/mypages-parallel-routes (pull request #1388)
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
This commit is contained in:
@@ -1,22 +1,3 @@
|
||||
import Divider from "@/components/TempDesignSystem/Divider"
|
||||
|
||||
import type { ProfileLayoutProps } from "@/types/components/myPages/myProfile/layout"
|
||||
|
||||
export default function ProfileLayout({
|
||||
children,
|
||||
communication,
|
||||
creditCards,
|
||||
profile,
|
||||
}: React.PropsWithChildren<ProfileLayoutProps>) {
|
||||
return (
|
||||
<main>
|
||||
{children}
|
||||
<section className="profile-layout">
|
||||
{profile}
|
||||
<Divider color="burgundy" opacity={8} />
|
||||
{creditCards}
|
||||
{communication}
|
||||
</section>
|
||||
</main>
|
||||
)
|
||||
export default function ProfileLayout({ children }: React.PropsWithChildren) {
|
||||
return <main>{children}</main>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user