Skip to content

An open-source, self-hosted system for apps built with web technologies.

Use PropsWithChildren for appearance views

zohayrslileh9f6b0f749b4a
diff --git a/source/client/view/appearance/appearance.tsx b/source/client/view/appearance/appearance.tsx
index f80d6e0..7b829f9 100644
--- a/source/client/view/appearance/appearance.tsx
+++ b/source/client/view/appearance/appearance.tsx
@@ -1,10 +1,10 @@
-import ReducedMotion from "@libs/react-motion"
-import { standardAppearance } from "@phreshos/core"
-import { ReactNode } from "react"
import DesktopPreferencesProvider, { useDesktopPreferences } from "./desktop-preferences"
+import { standardAppearance } from "@phreshos/core"
+import ReducedMotion from "@libs/react-motion"
+import { PropsWithChildren } from "react"
import "./appearance.css"
-export default function ({ children }: AppearanceProps) {
+export default function ({ children }: PropsWithChildren) {
return <DesktopPreferencesProvider>
@@ -13,7 +13,7 @@ export default function ({ children }: AppearanceProps) {
</DesktopPreferencesProvider>
}
-function AppearanceRoot({ children }: AppearanceProps) {
+function AppearanceRoot({ children }: PropsWithChildren) {
const { preferences } = useDesktopPreferences()
const background = standardAppearance.background[preferences.theme]
@@ -27,8 +27,3 @@ function AppearanceRoot({ children }: AppearanceProps) {
</ReducedMotion>
}
-
-interface AppearanceProps {
-
- children: ReactNode
-}