Skip to content

Commit

Permalink
feat: Undo header changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RudraPatel2003 committed Dec 26, 2024
1 parent 4ad9a28 commit 403ce24
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
"use client";

import SettingsIcon from "@mui/icons-material/Settings";
import { Button } from "@mui/material";
import Link from "next/link";
import { useSession } from "next-auth/react";

import Logo from "@/components/Logo";
import getUserSession from "@/utils/getUserSession";

export default function Header() {
// this is a client component so that it is refreshed upon sign in
const { data: session } = useSession();
export default async function Header() {
const session = await getUserSession();

return (
<header
Expand Down

0 comments on commit 403ce24

Please sign in to comment.