From 8c50a917275784ebfd2fa7273335d8d9e12b9565 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 8 Aug 2023 17:56:00 +0200 Subject: [PATCH] Move `StarContext` to `(layout)/StarredManager` --- .../app/[lang]/{StarContext.tsx => (layout)/StarredManager.tsx} | 0 todoblue/src/app/[lang]/(page)/StarredBoardsPanel.tsx | 2 +- todoblue/src/app/[lang]/board/[board]/BoardHeader.tsx | 2 +- todoblue/src/app/[lang]/layout.tsx | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename todoblue/src/app/[lang]/{StarContext.tsx => (layout)/StarredManager.tsx} (100%) diff --git a/todoblue/src/app/[lang]/StarContext.tsx b/todoblue/src/app/[lang]/(layout)/StarredManager.tsx similarity index 100% rename from todoblue/src/app/[lang]/StarContext.tsx rename to todoblue/src/app/[lang]/(layout)/StarredManager.tsx diff --git a/todoblue/src/app/[lang]/(page)/StarredBoardsPanel.tsx b/todoblue/src/app/[lang]/(page)/StarredBoardsPanel.tsx index ba127ac..a65df6b 100644 --- a/todoblue/src/app/[lang]/(page)/StarredBoardsPanel.tsx +++ b/todoblue/src/app/[lang]/(page)/StarredBoardsPanel.tsx @@ -1,7 +1,7 @@ "use client"; import {useClientTranslation} from "@/app/(i18n)/client" -import {useManagedStarred} from "@/app/[lang]/StarContext" +import {useManagedStarred} from "@/app/[lang]/(layout)/StarredManager" import {faStar} from "@fortawesome/free-solid-svg-icons" import {FontAwesomeIcon} from "@fortawesome/react-fontawesome" import cn from "classnames" diff --git a/todoblue/src/app/[lang]/board/[board]/BoardHeader.tsx b/todoblue/src/app/[lang]/board/[board]/BoardHeader.tsx index e7e3f9e..9c9407d 100644 --- a/todoblue/src/app/[lang]/board/[board]/BoardHeader.tsx +++ b/todoblue/src/app/[lang]/board/[board]/BoardHeader.tsx @@ -1,4 +1,4 @@ -import {useManagedStarred} from "@/app/[lang]/StarContext" +import {useManagedStarred} from "@/app/[lang]/(layout)/StarredManager" import {useRouter} from "next/navigation" import {ReactNode, useCallback} from "react" import style from "./BoardHeader.module.css" diff --git a/todoblue/src/app/[lang]/layout.tsx b/todoblue/src/app/[lang]/layout.tsx index 6d2ef67..23411e4 100644 --- a/todoblue/src/app/[lang]/layout.tsx +++ b/todoblue/src/app/[lang]/layout.tsx @@ -2,7 +2,7 @@ import "./layout.css"; import {Body} from "@/app/[lang]/(layout)/Body" -import {StarredManager} from "@/app/[lang]/StarContext" +import {StarredManager} from "@/app/[lang]/(layout)/StarredManager" import type {Metadata as NextMetadata} from "next" import {default as React, ReactNode} from "react"