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
|
|
@ -3,12 +3,12 @@ import LoginClient from './login'
|
|||
import { Metadata } from 'next'
|
||||
|
||||
type MetadataProps = {
|
||||
params: { orgslug: string }
|
||||
searchParams: { [key: string]: string | string[] | undefined }
|
||||
params: Promise<{ orgslug: string }>
|
||||
searchParams: Promise<{ [key: string]: string | string[] | undefined }>
|
||||
}
|
||||
|
||||
export async function generateMetadata(params: MetadataProps): Promise<Metadata> {
|
||||
const orgslug = params.searchParams.orgslug
|
||||
const orgslug = (await params.searchParams).orgslug
|
||||
|
||||
//const orgslug = params.orgslug
|
||||
// Get Org context information
|
||||
|
|
@ -23,7 +23,7 @@ export async function generateMetadata(params: MetadataProps): Promise<Metadata>
|
|||
}
|
||||
|
||||
const Login = async (params: MetadataProps) => {
|
||||
const orgslug = params.searchParams.orgslug
|
||||
const orgslug = (await params.searchParams).orgslug
|
||||
const org = await getOrganizationContextInfo(orgslug, {
|
||||
revalidate: 0,
|
||||
tags: ['organizations'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue