- Remove services/nextjs as git submodule - Add complete Next.js application source code - Include package.json and package-lock.json for npm cache - This fixes the GitHub Actions cache error
18 lines
410 B
TypeScript
18 lines
410 B
TypeScript
'use client';
|
|
|
|
import * as React from 'react';
|
|
import dynamic from 'next/dynamic';
|
|
import { ThemeProviderProps } from 'next-themes';
|
|
|
|
const NextThemesProvider = dynamic(
|
|
() => import('next-themes').then((e) => e.ThemeProvider),
|
|
{
|
|
ssr: false,
|
|
}
|
|
);
|
|
|
|
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
|
|
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
|
|
}
|
|
|