Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
fixed linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AKashton committed Nov 16, 2023
1 parent 4192570 commit 3538539
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import React, { useState, useEffect } from 'react'
import Image from 'next/image'
import searchIcon from '../../public/svg/search.svg'
import logo from '../../public/quaysideLogo.png'
import { useSession } from 'next-auth/react'
import { signOut } from 'next-auth/react'
import { useSession, signOut } from 'next-auth/react'

/**
* A Navbar component that fetches a user's name from a specified API and displays a navigation bar with several interactive elements.
*
Expand Down Expand Up @@ -89,17 +89,16 @@ const Navbar = () => {
</div>
</div>

{/*Sign Out*/}
{/* Sign Out */}
<div className='flex w-2/12 lg:w-1/12 justify-end my-auto text-right px-2'>
<button className="signout-button" onClick={() => signOut()}>Sign Out</button>
<button onClick={() => signOut()}>Sign Out</button>
</div>

{/* User Avatar Icon */}
{session && session.user && (
<div className="avatar-container">
<div>
<img
src={session.user.image}
alt="User Avatar"
style={{ width: '40px', height: '40px', borderRadius: '50%' }}
/>
</div>
Expand Down

0 comments on commit 3538539

Please sign in to comment.