mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 08:23:35 +00:00
ThemeProvider nitpicks
This commit is contained in:
4 files changed
+26
-24
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { useEffect, useState } from "react"
|
||||
import { Theme, ThemeProviderContext } from "@/lib/theme-context"
|
||||
import { type Theme, ThemeContext } from "@/lib/ThemeContext"
|
||||
|
||||
type ThemeProviderProps = {
|
||||
children: React.ReactNode
|
||||
@@ -61,9 +61,9 @@ export function ThemeProvider({
|
||||
}
|
||||
|
||||
return (
|
||||
<ThemeProviderContext.Provider {...props} value={value}>
|
||||
<ThemeContext.Provider {...props} value={value}>
|
||||
{children}
|
||||
</ThemeProviderContext.Provider>
|
||||
</ThemeContext.Provider>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user