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:
@@ -95,6 +95,7 @@ export default function Form({ user }: EditFormProps) {
|
||||
window.location.href = logout[lang]
|
||||
} else {
|
||||
router.push(profile[lang])
|
||||
router.refresh() // Can be removed on NextJs 15
|
||||
}
|
||||
break
|
||||
}
|
||||
@@ -110,7 +111,7 @@ export default function Form({ user }: EditFormProps) {
|
||||
|
||||
return (
|
||||
<section className={styles.container}>
|
||||
<hgroup className={styles.title}>
|
||||
<div className={styles.title}>
|
||||
<Title as="h4" color="red" level="h1" textTransform="capitalize">
|
||||
{intl.formatMessage({ id: "Welcome" })}
|
||||
</Title>
|
||||
@@ -123,7 +124,7 @@ export default function Form({ user }: EditFormProps) {
|
||||
>
|
||||
{user.name}
|
||||
</Title>
|
||||
</hgroup>
|
||||
</div>
|
||||
<div className={styles.btnContainer}>
|
||||
<Dialog
|
||||
bodyText={intl.formatMessage({
|
||||
|
||||
Reference in New Issue
Block a user