mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
chore: upgrade React and Next.js to latest versions
Update project dependencies to React 19 and Next.js 15, including TypeScript type adjustments and async parameter handling across multiple components
This commit is contained in:
parent
81c4190b00
commit
63be0f0ff3
28 changed files with 2781 additions and 2878 deletions
|
|
@ -6,13 +6,18 @@ export const metadata: Metadata = {
|
|||
title: 'LearnHouse Dashboard',
|
||||
}
|
||||
|
||||
function DashboardLayout({
|
||||
children,
|
||||
params,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
params: any
|
||||
}) {
|
||||
async function DashboardLayout(
|
||||
props: {
|
||||
children: React.ReactNode
|
||||
params: Promise<any>
|
||||
}
|
||||
) {
|
||||
const params = await props.params;
|
||||
|
||||
const {
|
||||
children
|
||||
} = props;
|
||||
|
||||
return (
|
||||
<>
|
||||
<ClientAdminLayout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue