diff --git a/frontend/components/layout/UserDropdown.tsx b/frontend/components/layout/UserDropdown.tsx index e112110c..f4bc7d8f 100644 --- a/frontend/components/layout/UserDropdown.tsx +++ b/frontend/components/layout/UserDropdown.tsx @@ -8,7 +8,7 @@ import { DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; -import { LogOut, User, FileCheck } from "lucide-react"; +import { LogOut, User, FileCheck, Smartphone } from "lucide-react"; import { useRouter } from "next/navigation"; interface UserDropdownProps { @@ -86,6 +86,10 @@ export function UserDropdown({ user, onProfileClick, onLogout }: UserDropdownPro 결재함 + router.push("/pop/home")}> + + POP 모드 + diff --git a/frontend/components/pop/hardcoded/PopShell.tsx b/frontend/components/pop/hardcoded/PopShell.tsx index aca15856..444b6193 100644 --- a/frontend/components/pop/hardcoded/PopShell.tsx +++ b/frontend/components/pop/hardcoded/PopShell.tsx @@ -62,8 +62,11 @@ export function PopShell({ children, showBanner = true, title, showBack = false, }; }, [profileOpen]); - const handlePcMode = () => { + const handlePcMode = async () => { setProfileOpen(false); + if (document.fullscreenElement) { + try { await document.exitFullscreen(); } catch {} + } router.push("/"); };