feat(SW-66, SW-348): search functionality and ui

This commit is contained in:
Simon Emanuelsson
2024-08-28 10:47:57 +02:00
parent b9dbcf7d90
commit af850c90e7
437 changed files with 7663 additions and 9881 deletions

View File

@@ -1,5 +1,5 @@
import InitLivePreview from "@/components/Current/LivePreview"
import { getLang, setLang } from "@/i18n/serverContext"
import { setLang } from "@/i18n/serverContext"
import type { Metadata } from "next"
@@ -17,7 +17,7 @@ export default function RootLayout({
setLang(params.lang)
return (
<html lang={getLang()}>
<html lang={params.lang}>
<body>
<InitLivePreview />
{children}

View File

@@ -1,4 +1,4 @@
import { getLang, setLang } from "@/i18n/serverContext"
import { setLang } from "@/i18n/serverContext"
import {
ContentTypeParams,
@@ -16,8 +16,8 @@ export default async function PreviewPage({
return (
<div>
<p>
Preview for {params.contentType}:{params.uid} in {getLang()} with params{" "}
<pre>{JSON.stringify(searchParams, null, 2)}</pre> goes here
Preview for {params.contentType}:{params.uid} in {params.lang} with
params <pre>{JSON.stringify(searchParams, null, 2)}</pre> goes here
</p>
</div>
)