From bc2d355f59abdb454fbad57c14159f7f7392fc70 Mon Sep 17 00:00:00 2001 From: David Arranz Date: Mon, 16 Sep 2024 11:37:44 +0200 Subject: [PATCH] . --- client/src/app/quotes/layout.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/client/src/app/quotes/layout.tsx b/client/src/app/quotes/layout.tsx index 9e88cbe..6f10f29 100644 --- a/client/src/app/quotes/layout.tsx +++ b/client/src/app/quotes/layout.tsx @@ -1,13 +1,8 @@ import { Layout, LayoutContent, LayoutHeader, ProtectedRoute } from "@/components"; -import { PropsWithChildren } from "react"; -import { Outlet, useLocation } from "react-router-dom"; +import { Outlet } from "react-router-dom"; import { QuotesProvider } from "./QuotesContext"; -export const QuotesLayout = ({ children }: PropsWithChildren) => { - const location = useLocation(); - - const isEditing = location.pathname.includes("/edit"); - +export const QuotesLayout = () => { return (