import React, { useEffect, useState } from 'react' import { Card, Image, Container, Row, Col, Table, Accordion } from 'react-bootstrap' import { Link } from 'react-router-dom'; import person from '../person.svg'; import mypagetiger from '../mypagetiger.svg'; import catchErrors from '../utils/catchErrors'; import { isAuthenticated } from '../utils/Auth' import axios from 'axios'; const INIT_PROFILE = { name: "", avatar: "", tel: "" } function Mypage() { const [profile, setProfile] = useState(INIT_PROFILE) const [error, setError] = useState("") const user = isAuthenticated() async function getProfile(user) { try { const response = await axios.get(`/api/users/Mypage/${user}`) setProfile(response.data) } catch (error) { catchErrors(error, setError) } } useEffect(() => { getProfile(user) }, [user]) return (

My Page

{user.name}

KU# {/* 홈페이지로 돌아가기 */} 에 오신 {user.name} 님,

진심으로 환영합니다! 즐거운 쇼핑 되세요.

문의 : shoppingmall_KU@korea.ac.kr {/* 쇼핑몰 문의 메일보내기 */}
주문현황 배송중 배송완료
케이시앵글부츠(SH) Mark Otto
2 Jacob Thornton
3 Larry the Bird
) } export default Mypage