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:
swve 2025-03-11 12:50:56 +01:00
parent 81c4190b00
commit 63be0f0ff3
28 changed files with 2781 additions and 2878 deletions

View file

@ -1,5 +1,5 @@
'use client'
import { default as React } from 'react'
import { default as React, type JSX } from 'react';
import Editor from './Editor'
import { updateActivity } from '@services/courses/activities'
import { toast } from 'react-hot-toast'
@ -7,8 +7,6 @@ import Toast from '@components/Objects/StyledElements/Toast/Toast'
import { OrgProvider } from '@components/Contexts/OrgContext'
import { useLHSession } from '@components/Contexts/LHSessionContext'
interface EditorWrapperProps {
content: string
activity: any

View file

@ -4,7 +4,7 @@ import { styled } from '@stitches/react'
import { blackA } from '@radix-ui/colors'
import { Info } from 'lucide-react'
const FormLayout = (props: any, onSubmit: any) => (
const FormLayout: React.FC<{ children: React.ReactNode; onSubmit: (e: any) => void }> = (props) => (
<FormRoot className="h-fit" onSubmit={props.onSubmit}>
{props.children}
</FormRoot>