feat(SW-66, SW-348): search functionality and ui
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user