From cc3e292f40108d0021da25fa8f02d6f7689f3369 Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Sun, 14 Jul 2024 19:54:13 +0200 Subject: [PATCH] Rename main Curtains component to CurtainsProvider. --- src/Application/Kernel.tsx | 6 +++--- src/Components/Curtains/Curtains.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Application/Kernel.tsx b/src/Application/Kernel.tsx index f5ff55f..dfde24d 100644 --- a/src/Application/Kernel.tsx +++ b/src/Application/Kernel.tsx @@ -1,7 +1,7 @@ import { IconContext } from "@phosphor-icons/react"; import React from "react"; import {createBrowserRouter, RouterProvider} from "react-router-dom"; -import {Curtains} from "../Components/Curtains/Curtains"; +import {CurtainsProvider} from "../Components/Curtains/Curtains"; import {NotificationsProvider} from "../Components/Notifications/Notifications"; /** @@ -19,11 +19,11 @@ export function Kernel({header, footer, router}: { weight: "bold", }}> - + {header} {footer} - + ); diff --git a/src/Components/Curtains/Curtains.tsx b/src/Components/Curtains/Curtains.tsx index 6470190..cc2dfcd 100644 --- a/src/Components/Curtains/Curtains.tsx +++ b/src/Components/Curtains/Curtains.tsx @@ -105,9 +105,9 @@ export function useCallableCurtain(curtainElem /** - * Page curtains system. + * Page curtains provider. */ -export function Curtains({children}: React.PropsWithChildren<{}>) +export function CurtainsProvider({children}: React.PropsWithChildren<{}>) { // Curtains state. const [curtains, setCurtains] = useState>({});