diff --git a/src/component/EditMyPage.js b/src/component/EditMyPage.js index 7952951..4ad2f3b 100644 --- a/src/component/EditMyPage.js +++ b/src/component/EditMyPage.js @@ -86,7 +86,7 @@ export default function EditMyPage({location}){ return(
- +

회원정보 수정

diff --git a/src/component/ExamDday.js b/src/component/ExamDday.js index 336197e..263def9 100644 --- a/src/component/ExamDday.js +++ b/src/component/ExamDday.js @@ -131,7 +131,7 @@ export default function ExamDday({location}){ return(
- +
diff --git a/src/component/MyPage.js b/src/component/MyPage.js index ea4da7f..e6205be 100644 --- a/src/component/MyPage.js +++ b/src/component/MyPage.js @@ -3,6 +3,7 @@ import Navbr from "./Navbar"; import React , {useState, useEffect} from 'react'; import Axios from 'axios'; import {Link} from 'react-router-dom'; +import MyPageNavbar from "./MyPageNavbar"; export default function MyPage(){ const [user,setUser]=useState([]); @@ -18,7 +19,7 @@ export default function MyPage(){ return(
- +
diff --git a/src/component/MyPageNavbar.js b/src/component/MyPageNavbar.js index a7e1674..be7f636 100644 --- a/src/component/MyPageNavbar.js +++ b/src/component/MyPageNavbar.js @@ -3,14 +3,28 @@ import { BsChevronDoubleLeft } from 'react-icons/bs'; import { Link } from 'react-router-dom'; import '../Navbar.css'; -export default function MyPageNavbar(){ +export default function MyPageNavbar(props){ + const thisPage = props.page; return(
- + {(thisPage === "mypage") && + ( + - + + ) + + } + {(thisPage !== "mypage") && + ( + + + + ) + + }
diff --git a/src/component/MyTime.js b/src/component/MyTime.js index 60be105..b617978 100644 --- a/src/component/MyTime.js +++ b/src/component/MyTime.js @@ -51,7 +51,7 @@ export default function MyTime ({location}){ return(
- +
나의 공부 시간