Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pakzadjs committed Feb 19, 2024
1 parent 721ab4a commit 93d1bcd
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/app/(user)/layout.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
"use client";

import "../globals.css";
import Header from "./Header";
import { Providers } from "../Providers";
import { Toaster } from "react-hot-toast";
import { usePathname } from "next/navigation";

import vazirFont from "@/constants/localFonts";
import Footer from "@/components/Footer";

// export const metadata = {
// title: "پودی گیتار | آموزش موسیقی و گیتار",
// description: "آموزش موسیقی و گیتار",
// };
export const metadata = {
title: "پودی گیتار | آموزش موسیقی و گیتار",
description: "آموزش موسیقی و گیتار",
};

export default function RootLayout({ children }) {
const pathname = usePathname();

return (
<html lang="fa" dir="rtl">
<head>
Expand All @@ -27,7 +22,7 @@ export default function RootLayout({ children }) {
<Toaster />
<Header />
{children}
{pathname !== "/auth" && <Footer />}
<Footer />
</Providers>
</body>
</html>
Expand Down

0 comments on commit 93d1bcd

Please sign in to comment.