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

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
floriandejonckheere committed Nov 22, 2023
1 parent 2423604 commit f404b1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/users.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export async function me() {
const token = localStorage.getItem('token')

if(!token) {
if (!token) {
throw new Error('Token not found')
}

Expand Down
8 changes: 7 additions & 1 deletion src/layouts/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ export default function Navigation(): ReactElement {
</span>
</div>
</a>
<a className="flex items-center gap-x-2 font-medium text-gray-500 hover:text-sky-700 sm:border-s sm:border-gray-300 sm:my-6 sm:ps-6 dark:border-gray-700 dark:text-gray-400 dark:hover:text-blue-500" href="#" onClick={() => { setToken(null) }}>
<a
className="flex items-center gap-x-2 font-medium text-gray-500 hover:text-sky-700 sm:border-s sm:border-gray-300 sm:my-6 sm:ps-6 dark:border-gray-700 dark:text-gray-400 dark:hover:text-blue-500"
href="#"
onClick={() => {
setToken(null)
}}
>
Sign out
</a>
</div>
Expand Down

0 comments on commit f404b1f

Please sign in to comment.