.
This commit is contained in:
parent
bca128ed92
commit
bc2d355f59
@ -1,13 +1,8 @@
|
|||||||
import { Layout, LayoutContent, LayoutHeader, ProtectedRoute } from "@/components";
|
import { Layout, LayoutContent, LayoutHeader, ProtectedRoute } from "@/components";
|
||||||
import { PropsWithChildren } from "react";
|
import { Outlet } from "react-router-dom";
|
||||||
import { Outlet, useLocation } from "react-router-dom";
|
|
||||||
import { QuotesProvider } from "./QuotesContext";
|
import { QuotesProvider } from "./QuotesContext";
|
||||||
|
|
||||||
export const QuotesLayout = ({ children }: PropsWithChildren) => {
|
export const QuotesLayout = () => {
|
||||||
const location = useLocation();
|
|
||||||
|
|
||||||
const isEditing = location.pathname.includes("/edit");
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ProtectedRoute>
|
<ProtectedRoute>
|
||||||
<QuotesProvider>
|
<QuotesProvider>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user