Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ["lh3.googleusercontent.com", "avatars.githubusercontent.com"],
remotePatterns: [
{
protocol: "https",
hostname: "avatars.githubusercontent.com",
},
],

},
};

Expand Down
5 changes: 3 additions & 2 deletions apps/web/src/components/dashboard/ProfilePic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

import Image from "next/image";
import imgUrl from "../../assets/images/user_dp.png";

import { useSession } from "next-auth/react";
export const ProfilePic = () => {
const { data: session } = useSession();
return (
<div className="rounded-full overflow-hidden inline-block h-8 w-8 border">
<Image
alt="User Profile"
src={imgUrl}
src={session?.user?.image||imgUrl}
className="w-full h-full object-cover"
width={10}
height={10}
Expand Down
Loading