From 9ceed79cf32c896f8a998399bf1b296506b2cd4a Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Tue, 8 Apr 2025 03:08:19 +0000
Subject: 로그인 및 미들웨어 처리. 구조 변경
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/layout/MobileMenu.tsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'components/layout/MobileMenu.tsx')

diff --git a/components/layout/MobileMenu.tsx b/components/layout/MobileMenu.tsx
index d2e6b927..2e70aeba 100644
--- a/components/layout/MobileMenu.tsx
+++ b/components/layout/MobileMenu.tsx
@@ -4,10 +4,10 @@
 
 import * as React from "react";
 import Link from "next/link";
-import { useRouter,usePathname } from "next/navigation";
+import { useRouter, usePathname } from "next/navigation";
 import { MenuSection, mainNav, additionalNav, MenuItem, mainNavVendor, additionalNavVendor } from "@/config/menuConfig";
 import { cn } from "@/lib/utils";
-import { Drawer, DrawerContent,DrawerTitle,DrawerTrigger } from "@/components/ui/drawer";
+import { Drawer, DrawerContent, DrawerTitle, DrawerTrigger } from "@/components/ui/drawer";
 import { Button } from "@/components/ui/button";
 
 interface MobileMenuProps {
@@ -24,14 +24,14 @@ export function MobileMenu({ lng, onClose }: MobileMenuProps) {
     onClose();
   };
   const pathname = usePathname();
-  const isPartnerRoute = pathname.includes("/partners");
+  const isPartnerRoute = pathname?.includes("/partners");
 
   const main = isPartnerRoute ? mainNavVendor : mainNav;
   const additional = isPartnerRoute ? additionalNavVendor : additionalNav;
 
   return (
     <Drawer open={true} onOpenChange={onClose}>
-              <DrawerTrigger asChild>
+      <DrawerTrigger asChild>
       </DrawerTrigger>
       <DrawerTitle />
       <DrawerContent className="max-h-[60vh] p-0">
-- 
cgit v1.2.3

