mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
Added sign out when navbar is small
This commit is contained in:
parent
62824a6b83
commit
3506b3495b
1 changed files with 11 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
import React, { useState } from "react";
|
||||
import { Transition } from "@headlessui/react";
|
||||
import ProfileDropDown from "./ProfileDropDown";
|
||||
import { signOut } from "next-auth/react";
|
||||
|
||||
function makeLink(href: string, label: string) {
|
||||
return (
|
||||
|
|
@ -110,6 +111,16 @@ function Nav({ pageName }: { pageName: string }) {
|
|||
>
|
||||
Help
|
||||
</a>
|
||||
|
||||
<a
|
||||
href="/"
|
||||
className="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium"
|
||||
onClick={() => {
|
||||
SignOut();
|
||||
}}
|
||||
>
|
||||
Log Out
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue