feat(components): use arrow function
This commit is contained in:
parent
9e7e1d76a2
commit
90f9edea95
4 changed files with 11 additions and 11 deletions
|
@ -1,14 +1,14 @@
|
|||
'use client';
|
||||
import { ThemeProvider } from 'next-themes';
|
||||
|
||||
export function ThemeProviderComponent({
|
||||
export const ThemeProviderComponent = ({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
}) => {
|
||||
return (
|
||||
<ThemeProvider attribute="class" enableSystem={false} defaultTheme="dark">
|
||||
{children}
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue