Skip to content

Commit

Permalink
fix: 로고 커서 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ymj07168 committed Oct 30, 2024
1 parent 18f9f45 commit bfa546f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/components/common/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,19 @@ import {
} from "@fortawesome/free-solid-svg-icons";
import { useAuth } from "../../hooks/useAuth";
import { useNavigate } from "react-router-dom";
import { useMediaQuery } from '@mui/material';
import { useMediaQuery } from "@mui/material";
import { getCookie, removeCookie } from "../../api/cookie";
import { useGetUserInfo } from "../../hooks/useGetUserInfo";


const Header = () => {
const { isLoggedIn } = useAuth();
const navigate = useNavigate();
const [modal, setModal] = React.useState(false);
const [anchorEl, setAnchorEl] = React.useState(null);
const menuOpen = Boolean(anchorEl);
const isMobile = useMediaQuery('(max-width:550px)');
const isMobile = useMediaQuery("(max-width:550px)");
const { data, refetch } = useGetUserInfo(getCookie("accessToken"));


// 프로필 메뉴 클릭
const handleMenuClick = (event) => {
setAnchorEl(event.currentTarget);
Expand Down Expand Up @@ -64,7 +62,7 @@ const Header = () => {
<div className="flex flex-row items-center justify-between p-3 shadow-sm">
<div className="w-full max-w-[1400px] m-auto flex flex-row justify-between">
<div
className="text-2xl font-extrabold"
className="text-2xl font-extrabold cursor-pointer"
onClick={() => navigate("/")}
>
CodingCare
Expand Down Expand Up @@ -112,7 +110,7 @@ const Header = () => {
top: "50%",
left: "50%",
transform: "translate(-50%, -50%)",
width : isMobile ? '70%' : 400,
width: isMobile ? "70%" : 400,
bgcolor: "background.paper",
boxShadow: 24,
paddingY: 3,
Expand Down

0 comments on commit bfa546f

Please sign in to comment.