fix: fix build error for layout props

This commit is contained in:
javayhu 2025-04-05 07:54:30 +08:00
parent e8ea6cdd5d
commit b5699b85f1
4 changed files with 12 additions and 12 deletions

View File

@ -1,9 +1,9 @@
import { DashboardHeader } from '@/components/dashboard/dashboard-header';
import { NextPageProps } from '@/types/next-page-props';
import { getTranslations } from 'next-intl/server';
import { PropsWithChildren } from 'react';
interface BillingLayoutProps extends PropsWithChildren, NextPageProps {}
interface BillingLayoutProps {
children: React.ReactNode;
}
export default async function BillingLayout({
children,

View File

@ -1,9 +1,9 @@
import { DashboardHeader } from '@/components/dashboard/dashboard-header';
import { NextPageProps } from '@/types/next-page-props';
import { getTranslations } from 'next-intl/server';
import { PropsWithChildren } from 'react';
interface NotificationsLayoutProps extends PropsWithChildren, NextPageProps {}
interface NotificationsLayoutProps {
children: React.ReactNode;
}
export default async function NotificationsLayout({
children,

View File

@ -1,9 +1,9 @@
import { DashboardHeader } from '@/components/dashboard/dashboard-header';
import { NextPageProps } from '@/types/next-page-props';
import { getTranslations } from 'next-intl/server';
import { PropsWithChildren } from 'react';
interface ProfileLayoutProps extends PropsWithChildren, NextPageProps {}
interface ProfileLayoutProps {
children: React.ReactNode;
}
export default async function ProfileLayout({
children,

View File

@ -1,9 +1,9 @@
import { DashboardHeader } from '@/components/dashboard/dashboard-header';
import { NextPageProps } from '@/types/next-page-props';
import { getTranslations } from 'next-intl/server';
import { PropsWithChildren } from 'react';
interface SecurityLayoutProps extends PropsWithChildren, NextPageProps {}
interface SecurityLayoutProps {
children: React.ReactNode;
}
export default async function SecurityLayout({
children,