fix(i18n): render consent banner inside NextIntl provider
Move ConsentBanner rendering into the locale layout so next-intl context is always available (prevents missing provider errors). fix(activity-feed): use dark styling for disabled state Avoid white disabled cards so the feed never appears as a white/transparent block after reload. test(e2e): assert nav text changes on locale switch Strengthen i18n test to verify translated labels. Co-authored-by: dennis <dennis@konkol.net>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { NextIntlClientProvider } from "next-intl";
|
||||
import { getMessages, setRequestLocale } from "next-intl/server";
|
||||
import React from "react";
|
||||
import ConsentBanner from "../components/ConsentBanner";
|
||||
|
||||
export default async function LocaleLayout({
|
||||
children,
|
||||
@@ -17,6 +18,7 @@ export default async function LocaleLayout({
|
||||
return (
|
||||
<NextIntlClientProvider locale={locale} messages={messages}>
|
||||
{children}
|
||||
<ConsentBanner />
|
||||
</NextIntlClientProvider>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user