fix(web): update dashboard pages, layouts, and listing forms
Update 12 page/layout files across auth, dashboard, listings, and search routes to improve type safety, fix component imports, and align with latest API changes. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { Metadata, Viewport } from 'next';
|
||||
import { Inter } from 'next/font/google';
|
||||
import { notFound } from 'next/navigation';
|
||||
import { NextIntlClientProvider } from 'next-intl';
|
||||
import { getMessages, getTranslations } from 'next-intl/server';
|
||||
@@ -11,6 +12,12 @@ import type { Locale } from '@/i18n/config';
|
||||
import { routing } from '@/i18n/routing';
|
||||
import '../globals.css';
|
||||
|
||||
const inter = Inter({
|
||||
subsets: ['latin', 'vietnamese'],
|
||||
display: 'swap',
|
||||
variable: '--font-inter',
|
||||
});
|
||||
|
||||
const siteUrl = process.env['NEXT_PUBLIC_SITE_URL'] || 'https://goodgo.vn';
|
||||
|
||||
export const viewport: Viewport = {
|
||||
@@ -99,8 +106,8 @@ export default async function LocaleLayout({
|
||||
const t = await getTranslations({ locale, namespace: 'common' });
|
||||
|
||||
return (
|
||||
<html lang={locale} suppressHydrationWarning>
|
||||
<body>
|
||||
<html lang={locale} suppressHydrationWarning className={inter.variable}>
|
||||
<body className={inter.className}>
|
||||
<JsonLd data={generateWebsiteJsonLd(siteUrl)} />
|
||||
<a
|
||||
href="#main-content"
|
||||
|
||||
Reference in New Issue
Block a user