From 671e3744db8884abb83febb7ec13e0127ad0e14b Mon Sep 17 00:00:00 2001 From: Henrik Larsson Date: Sun, 13 Aug 2023 22:38:58 +0200 Subject: [PATCH] Hero updates --- app/[locale]/layout.tsx | 10 +- .../dynamic-content-manager.tsx | 244 ++++++++++++------ components/modules/hero/hero.tsx | 4 +- components/ui/sanity-image/sanity-image.tsx | 39 ++- 4 files changed, 196 insertions(+), 101 deletions(-) diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index 0546880c4..7c8240522 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -3,7 +3,7 @@ import Header from 'components/layout/header/header'; import { NextIntlClientProvider } from 'next-intl'; import { Inter } from 'next/font/google'; import { notFound } from 'next/navigation'; -import { ReactNode } from 'react'; +import { ReactNode, Suspense } from 'react'; import { supportedLanguages } from '../../i18n-config'; import './globals.css'; @@ -58,8 +58,12 @@ export default async function LocaleLayout({ children, params: { locale } }: Loc
-
{children}
-