From a95a26ec0ccc9dc7d04a6bbce225c70fe85ab7f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Sun, 2 Nov 2025 11:41:37 +0100 Subject: [PATCH] pl-fe: use matchPath MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/features/ui/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pl-fe/src/features/ui/index.tsx b/packages/pl-fe/src/features/ui/index.tsx index 5ebd6b911..45d96af9a 100644 --- a/packages/pl-fe/src/features/ui/index.tsx +++ b/packages/pl-fe/src/features/ui/index.tsx @@ -1,6 +1,6 @@ import clsx from 'clsx'; import React, { Suspense, lazy, useEffect, useRef } from 'react'; -import { Redirect, Switch, useHistory, useLocation } from 'react-router-dom'; +import { matchPath, Redirect, Switch, useHistory, useLocation } from 'react-router-dom'; import { fetchConfig } from 'pl-fe/actions/admin'; import { fetchFilters } from 'pl-fe/actions/filters'; @@ -489,7 +489,7 @@ const UI: React.FC = React.memo(({ children }) => { pointerEvents: isDropdownMenuOpen ? 'none' : undefined, }; - const fullWidth = history.location.pathname.startsWith('/deck'); + const fullWidth = !!matchPath(history.location.pathname, '/deck'); return (