diff options
| author | Factiven <[email protected]> | 2023-09-25 00:44:40 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-25 00:44:40 +0700 |
| commit | 1a85c2571690ba592ac5183d5eadaf9846fe532b (patch) | |
| tree | 3f3552c00cd49c0eeab5275275cf5cf5666e5027 /components/shared/MobileNav.js | |
| parent | Delete .github/workflows/deploy.yml (diff) | |
| download | moopa-4.1.0.tar.xz moopa-4.1.0.zip | |
Update v4.1.0 (#79)v4.1.0
* Update v4.1.0
* Update pages/_app.js
Diffstat (limited to 'components/shared/MobileNav.js')
| -rw-r--r-- | components/shared/MobileNav.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/shared/MobileNav.js b/components/shared/MobileNav.js index 6dd1e64..d0f29c2 100644 --- a/components/shared/MobileNav.js +++ b/components/shared/MobileNav.js @@ -1,12 +1,12 @@ import { MagnifyingGlassIcon } from "@heroicons/react/20/solid"; -import { CalendarIcon, ClockIcon, HomeIcon } from "@heroicons/react/24/outline"; -import { signIn, signOut } from "next-auth/react"; +import { CalendarIcon, HomeIcon } from "@heroicons/react/24/outline"; +import { signIn, signOut, useSession } from "next-auth/react"; import Image from "next/image"; import Link from "next/link"; -import { useRouter } from "next/router"; import { useState } from "react"; -export default function MobileNav({ sessions, hideProfile = false }) { +export default function MobileNav({ hideProfile = false }) { + const { data: sessions } = useSession(); const [isVisible, setIsVisible] = useState(false); const handleShowClick = () => { |