-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 프로필에 소셜 링크 추가 * feat: 소셜링크 받아와지는 것 확인 * [Fix] #208,#206,#197 (#220) * [fix]: tag 가 width를 넘치는 문제 해소 * [fix]: 불필요한 slice로 복사 붙여넣기 느려지는 문제 해소 * [fix]: # trimming, hashtag 12자 제한 * [fix]: #197, review length 조절 및 ui 일부 변경 UI: input box size row = 6 설정 UI: counter 제공 fid: maxLength 300 제한 * [fix]: 해시태그 문자 제한 제거 * [fix]: 멘토링 분야 선택 #224 * feat: 프로필에 소셜 링크 추가 * feat: 멘토 프로필에 socialLink 추가, 토글 활성화 조건 추가 * refactor: css * fix: 진행버튼 * fix: build error * fix: socialLink 공백인 경우 null 처리 * feat: 멘토링 진행하기 버튼 클릭시 슬랙 프로필 링크 이동여부 모달 * fix: 테스트 * fix: css 제대로 병합 * fix: 소셜링크 없을 때 undefined, 프로필 슬랙 이미지 비활성화 * fix: 진행 alert 제거, socialLink Regex 검사 * fix: 이번엔 진짜 진행하기... , dto 변경 * fix: success alert 제거 * ✨ [Feat]: mentorProfile activation --------- Co-authored-by: Photogrammer <81505228+JuneParkCode@users.noreply.github.com> Co-authored-by: myukang <myunghwan0421@gmail.com>
- Loading branch information
1 parent
45336fe
commit 3faf0d3
Showing
17 changed files
with
238 additions
and
51 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,5 @@ export interface MentorProfileDto { | |
nickname: string; | ||
profileImage: string; | ||
}; | ||
socialLink?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
42manito/src/components/Reservation/modal/SocialLinkModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { useDispatch, useSelector } from "react-redux"; | ||
import { closeSocialLinkModal } from "@/RTK/Slices/Reservation"; | ||
import { useState } from "react"; | ||
import { Button } from "@/common"; | ||
import { ButtonType } from "@/Types/General/ButtonType"; | ||
import { RootState } from "@/RTK/store"; | ||
import { useGetMentorProfileQuery } from "@/RTK/Apis/User"; | ||
|
||
export default function SocialLinkModal() { | ||
const dispatch = useDispatch(); | ||
const reservation = useSelector( | ||
(state: RootState) => state.rootReducers.reservation.selectedReservation | ||
); | ||
const getMentor = useGetMentorProfileQuery({ | ||
id: reservation.mentorId, | ||
}); | ||
|
||
const handleOnClose = () => { | ||
dispatch(closeSocialLinkModal()); | ||
}; | ||
|
||
const handleOnAccept = () => { | ||
window.open(getMentor.data?.socialLink); | ||
dispatch(closeSocialLinkModal()); | ||
}; | ||
|
||
return ( | ||
<div | ||
className="connect-wrapper" | ||
id="wrapper" | ||
onClick={(e) => e.stopPropagation()} | ||
> | ||
<section | ||
className={`connect-modal-section`} | ||
onClick={(e) => e.stopPropagation()} | ||
> | ||
<div className="connect-container"> | ||
<div className="connect-content-wrapper mt-5 self-center flex"> | ||
<span className="break-keep text-center"> | ||
멘토의 슬랙프로필 페이지로 이동하시겠습니까? | ||
</span> | ||
</div> | ||
<div className="connect-btn-wrapper"> | ||
<Button | ||
buttonType={ButtonType.CANCEL} | ||
onClick={() => handleOnClose()} | ||
> | ||
닫기 | ||
</Button> | ||
<Button | ||
buttonType={ButtonType.ACCEPT} | ||
onClick={() => handleOnAccept()} | ||
> | ||
이동하기 | ||
</Button> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.