From 34948c3e01f4d725a92d90a78b528c16d555f656 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Tue, 10 Dec 2024 10:31:36 +0100 Subject: [PATCH] fix(frontend): update layout full width condition --- frontend/src/utils/laylout.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/utils/laylout.ts b/frontend/src/utils/laylout.ts index 3d2dfa2e..32160d8b 100644 --- a/frontend/src/utils/laylout.ts +++ b/frontend/src/utils/laylout.ts @@ -6,11 +6,11 @@ * 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file). */ -import { FULL_WIDTH_PATHNAMES, TRouterValues } from "@/services/types"; +import { FULL_WIDTH_PATHNAMES } from "@/services/types"; type TLayout = "default" | "full_width"; export const getLayout = (pathname: string): TLayout => - FULL_WIDTH_PATHNAMES.includes(pathname as TRouterValues) + FULL_WIDTH_PATHNAMES.some((path) => pathname.startsWith(path)) ? "full_width" : "default";