From e9308db5dc0056f582e364a6e2a931820a4d9896 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Fri, 22 May 2026 11:59:47 +0200 Subject: [PATCH] fix(board): align edit mode with dev's removal of loading overlay Remove useIsBoardReady and LoadingOverlay from edit mode board, aligning with the dev branch's perf improvement that shows the board immediately without waiting for ready state. --- .../[locale]/boards/(content)/_edit-board.tsx | 31 ++++++------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/apps/nextjs/src/app/[locale]/boards/(content)/_edit-board.tsx b/apps/nextjs/src/app/[locale]/boards/(content)/_edit-board.tsx index e78952ff9..157f1c174 100644 --- a/apps/nextjs/src/app/[locale]/boards/(content)/_edit-board.tsx +++ b/apps/nextjs/src/app/[locale]/boards/(content)/_edit-board.tsx @@ -1,41 +1,30 @@ "use client"; -import { Box, LoadingOverlay, Stack } from "@mantine/core"; +import { Stack } from "@mantine/core"; import { useCurrentLayout, useRequiredBoard } from "@homarr/boards/context"; import { BoardCategorySection } from "~/components/board/sections/category-section"; import { BoardEmptySection } from "~/components/board/sections/empty-section"; -import { fullHeightWithoutHeaderAndFooter } from "~/constants"; -import { useIsBoardReady } from "./_ready-context"; const EditModeBoard = () => { const board = useRequiredBoard(); const currentLayoutId = useCurrentLayout(); - const isReady = useIsBoardReady(); const fullWidthSortedSections = board.sections .filter((section) => section.kind === "empty" || section.kind === "category") .sort((sectionA, sectionB) => sectionA.yOffset - sectionB.yOffset); return ( - - - - {fullWidthSortedSections.map((section) => - section.kind === "empty" ? ( - - ) : ( - - ), - )} - - + + {fullWidthSortedSections.map((section) => + section.kind === "empty" ? ( + + ) : ( + + ), + )} + ); };