Skip to content

Commit

Permalink
fix: 마이페이지 사용자 이름 user.name으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sseohalee committed Jun 10, 2024
1 parent eca0d74 commit e67d695
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/mypage/MypagePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ import {
SlSettings,
} from "react-icons/sl";
import { useNavigate } from "react-router-dom";
import { useUser } from "../../contexts/UserContext";

export const MypagePage = () => {
const navigate = useNavigate();
const { user } = useUser();

return (
<>
<div className="">
<div className="flex bg-white p-10 mb-4">
<img src="/hana.png" alt="Hana Image" className="w-16 h-16"></img>
<span className="m-4 text-xl font-bold font-hana-m">김하나</span>
<span className="m-4 text-xl font-bold font-hana-m">{user.name}</span>
</div>
<div className="mx-8 mb-2 font-hana-m text-lg">메뉴</div>
<div className="divide-y divide-solid m-5">
Expand Down

0 comments on commit e67d695

Please sign in to comment.