Skip to content

Commit

Permalink
(Team-Coverflow#329)feat: 마이페이지 내 본인 정보 태그 추가했습니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJayleee committed May 30, 2024
1 parent 2f4724c commit 88b8fe2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/asset/sass/pages/myPage/myPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,17 @@
scrollbar-width: none;
background-color: #fffdfb !important;
}

.my-tag{
font-size : 1.5rem;
color : #FF8D1D;
width:12rem;
height:3rem;
border-Radius : 20px;
padding : 1% 2.5%;
border: 1px solid #FF8D1D;
margin-top: 2rem;
display: flex;
align-items: center;
justify-content: center;
}
2 changes: 1 addition & 1 deletion src/components/pages/adminPage/adminMainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import CompanySelection from '../../ui/adminSelection/companySelection';
import AdminSideTap from '../../ui/adminSelection/adminSideTap';
import FeedbackSelection from '../../ui/adminSelection/feedbackSelection';
import MemberSelection from '../../ui/adminSelection/memberSelection';
import ContactSelection from '../../ui/adminSelection/contactSelection';
import ContactSelection from "../../ui/adminSelection/contactSelection";
import ReportQuestions from '../../ui/adminSelection/reportQuestions';
import ReportAnswers from '../../ui/adminSelection/reportAnswers';
import ReportComments from '../../ui/adminSelection/reportComments';
Expand Down
4 changes: 4 additions & 0 deletions src/components/pages/myPage/myPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const StatusTab = styled.div<{ $current: boolean }>`
function Mypage() {
const [currentCategory, setCurrentCategory] = useState('comments');
const [nickname, setNickname] = useState('');
const [tag, setTag] = useState('');
const [socialType, setSocialType] = useState('');
const [question, setQuestion] = useState([]);
const [answer, setAnswer] = useState([]);
Expand All @@ -75,8 +76,10 @@ function Mypage() {
const loadUserData = async () => {
try {
const data = await fetchAPI('/api/member/me', 'GET');
console.log(data)
setNickname(data.data.nickname);
mySocialType(data.data.socialType);
setTag(data.data.tag)
} catch (error) {
showErrorToast('회원 정보 불러오기 실패');
}
Expand Down Expand Up @@ -149,6 +152,7 @@ function Mypage() {
{nickname}
<span className="title-intro">님, 안녕하세요</span>
<p className="my-social-type"> {socialType} 로그인 사용중</p>
<div className='my-tag'>{tag}</div>
</div>

<div className="mypage-select-menu">
Expand Down

0 comments on commit 88b8fe2

Please sign in to comment.