Fix build errors: add typed params, use client tags, and Docker build args
This commit is contained in:
@@ -4,9 +4,14 @@ import { Link } from '@/i18n/routing';
|
||||
import { yachts } from '../data/yachts';
|
||||
import YachtCard from '../components/YachtCard';
|
||||
import { motion } from 'framer-motion';
|
||||
import { useTranslations } from 'next-intl';
|
||||
import { use } from 'react';
|
||||
|
||||
export default function Home() {
|
||||
interface PageProps {
|
||||
params: Promise<{ locale: string }>;
|
||||
}
|
||||
|
||||
export default function Home({ params }: PageProps) {
|
||||
const { locale: _locale } = use(params);
|
||||
const t = useTranslations('Home');
|
||||
|
||||
const fadeInUp = {
|
||||
|
||||
Reference in New Issue
Block a user