Skip to content

Commit

Permalink
fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
harjibbolar26 committed Jul 30, 2024
1 parent 4475a08 commit dbb5bd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Inter } from "next/font/google";

import "./globals.css";

import { SessionProvider } from "next-auth/react";

import Providers from "~/components/providers";
import { Toaster } from "~/components/ui/toaster";

Expand All @@ -22,7 +24,7 @@ export default function RootLayout({
<body className={inter.className}>
<div className="mx-auto w-full">
<Providers />
{children}
<SessionProvider>{children}</SessionProvider>
<Toaster />
</div>
</body>
Expand Down
3 changes: 1 addition & 2 deletions src/components/layouts/navbar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use client";

import { useSession } from "next-auth/react";
import Link from "next/link";
import { useEffect, useState } from "react";

Expand Down Expand Up @@ -62,7 +63,6 @@ const Navbar = () => {
<UserCard image={session?.user?.image as string} />
</div>
) : (
{!user.email && (
<div className="w-fullx hidden items-center justify-end gap-x-4 justify-self-end md:flex lg:gap-x-8">
<Link
href="/login"
Expand All @@ -78,7 +78,6 @@ const Navbar = () => {
</Link>
</div>
)}
{user.email && <UserCard email={user.email} />}
</div>
</nav>
);
Expand Down

0 comments on commit dbb5bd1

Please sign in to comment.