mirror of
https://codeberg.org/MarkusThielker/next-ory.git
synced 2025-07-01 12:39:18 +00:00
NORY-4: migrate to Next.js 15
This commit is contained in:
parent
4960b2c481
commit
b2a4ba775d
7 changed files with 385 additions and 334 deletions
|
@ -8,7 +8,9 @@ import ConsentForm from '@/components/consentForm';
|
|||
import { redirect } from 'next/navigation';
|
||||
import { toast } from 'sonner';
|
||||
|
||||
export default async function Consent({ searchParams }: { searchParams: { consent_challenge: string } }) {
|
||||
export default async function Consent(props: { searchParams: Promise<{ consent_challenge: string }> }) {
|
||||
|
||||
const searchParams = await props.searchParams;
|
||||
|
||||
const consentChallenge = searchParams.consent_challenge ?? undefined;
|
||||
let consentRequest: OAuth2ConsentRequest | undefined = undefined;
|
||||
|
|
|
@ -4,7 +4,7 @@ import './globals.css';
|
|||
import { cn } from '@/lib/utils';
|
||||
import { Toaster } from '@/components/ui/sonner';
|
||||
import React from 'react';
|
||||
import { ThemeProvider } from '@/components/themeProvider';
|
||||
import { ThemeProvider } from 'next-themes';
|
||||
|
||||
const inter = Inter({ subsets: ['latin'] });
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
import { ThemeProvider as NextThemesProvider } from 'next-themes';
|
||||
import { type ThemeProviderProps } from 'next-themes/dist/types';
|
||||
import { ThemeProvider as NextThemesProvider, ThemeProviderProps } from 'next-themes';
|
||||
|
||||
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
|
||||
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue