fix: parallell routes needs a page.tsx in root not just in catchAll route
This commit is contained in:
@@ -6,5 +6,4 @@ import type { LangParams, PageArgs } from "@/types/params"
|
|||||||
|
|
||||||
export default function MyPages({ params }: PageArgs<LangParams>) {
|
export default function MyPages({ params }: PageArgs<LangParams>) {
|
||||||
redirect(overview[params.lang])
|
redirect(overview[params.lang])
|
||||||
return null
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import CommunicationPreferences from "@/components/MyProfile/CommunicationPreferences"
|
||||||
|
|
||||||
|
export default function Communication() {
|
||||||
|
return <CommunicationPreferences />
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import CreditCards from "@/components/MyProfile/CreditCards"
|
||||||
|
|
||||||
|
export default function CreditCardSlot() {
|
||||||
|
return <CreditCards />
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import MembershipCard from "@/components/MyProfile/MembershipCard"
|
||||||
|
|
||||||
|
export default function MembershipCardSlot() {
|
||||||
|
return <MembershipCard />
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import Password from "@/components/MyProfile/Password"
|
||||||
|
|
||||||
|
export default function PasswordSlot() {
|
||||||
|
return <Password />
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import Wishes from "@/components/MyProfile/Wishes"
|
||||||
|
|
||||||
|
export default function WishesSlot() {
|
||||||
|
return <Wishes />
|
||||||
|
}
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
export default function EditPage() {
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
@@ -91,9 +91,10 @@ export default function CountrySelect({
|
|||||||
*/
|
*/
|
||||||
UNSTABLE_portalContainer={divElement ?? undefined}
|
UNSTABLE_portalContainer={divElement ?? undefined}
|
||||||
>
|
>
|
||||||
<ListBox>
|
<ListBox aria-label="Country of residence">
|
||||||
{countries.map((country, idx) => (
|
{countries.map((country, idx) => (
|
||||||
<ListBoxItem
|
<ListBoxItem
|
||||||
|
aria-label={country.name}
|
||||||
className={styles.listBoxItem}
|
className={styles.listBoxItem}
|
||||||
id={country.name}
|
id={country.name}
|
||||||
key={`${country.code}-${idx}`}
|
key={`${country.code}-${idx}`}
|
||||||
|
|||||||
@@ -63,12 +63,13 @@ export default function Select({
|
|||||||
*/
|
*/
|
||||||
UNSTABLE_portalContainer={divElement ?? undefined}
|
UNSTABLE_portalContainer={divElement ?? undefined}
|
||||||
>
|
>
|
||||||
<ListBox className={styles.listBox}>
|
<ListBox aria-label={name} className={styles.listBox}>
|
||||||
{items.map((item) => (
|
{items.map((item) => (
|
||||||
<ListBoxItem
|
<ListBoxItem
|
||||||
key={item}
|
aria-label={String(item)}
|
||||||
className={styles.listBoxItem}
|
className={styles.listBoxItem}
|
||||||
id={item}
|
id={item}
|
||||||
|
key={item}
|
||||||
textValue={String(item)}
|
textValue={String(item)}
|
||||||
>
|
>
|
||||||
{item}
|
{item}
|
||||||
|
|||||||
Reference in New Issue
Block a user