From 6ec6a0c7df6b6ad39e4e7ed169b5fbceafacff89 Mon Sep 17 00:00:00 2001 From: Val Date: Mon, 9 Dec 2024 22:46:30 +0100 Subject: [PATCH] type theme provider as jsx component --- components/ThemeProvider.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/components/ThemeProvider.tsx b/components/ThemeProvider.tsx index 0055044..d1d73be 100644 --- a/components/ThemeProvider.tsx +++ b/components/ThemeProvider.tsx @@ -4,8 +4,9 @@ import * as React from "react"; import { ThemeProvider as NextThemesProvider } from "next-themes"; import { type ThemeProviderProps } from "next-themes/dist/types"; -export function ThemeProvider({ children, ...props }: ThemeProviderProps) { - return ( - {children} - ); +export function ThemeProvider({ + children, + ...props +}: ThemeProviderProps): JSX.Element { + return {children}; }