-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
74 additions
and
39 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import ConfirmModal from '@/components/Modal/ConfirmModal'; | ||
|
||
import { MemberModalProps } from '../types'; | ||
|
||
const FiredMemberModal = ({ member, isOpen, onClose }: MemberModalProps) => { | ||
const handleFiredMemberClick = () => { | ||
// TODO: 멤버 퇴출 api 연결 | ||
onClose(); | ||
}; | ||
|
||
return ( | ||
<ConfirmModal | ||
isOpen={isOpen} | ||
onClose={onClose} | ||
title="팀원 퇴출" | ||
confirmButtonText="퇴출" | ||
onConfirmButtonClick={handleFiredMemberClick} | ||
> | ||
{member.name}을 퇴출하시겠습니까? | ||
</ConfirmModal> | ||
); | ||
}; | ||
|
||
export default FiredMemberModal; |
24 changes: 24 additions & 0 deletions
24
src/containers/team/teamMember/MandateMemberModal/index.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,24 @@ | ||
import ConfirmModal from '@/components/Modal/ConfirmModal'; | ||
|
||
import { MemberModalProps } from '../types'; | ||
|
||
const MandateMemberModal = ({ member, isOpen, onClose }: MemberModalProps) => { | ||
const handleMandateMemberClick = () => { | ||
// TODO: 팀장 권한 위임 api 연결 | ||
onClose(); | ||
}; | ||
|
||
return ( | ||
<ConfirmModal | ||
isOpen={isOpen} | ||
onClose={onClose} | ||
title="팀장 위임" | ||
confirmButtonText="위임" | ||
onConfirmButtonClick={handleMandateMemberClick} | ||
> | ||
{member.name}에게 팀장을 위임하겠습니까? | ||
</ConfirmModal> | ||
); | ||
}; | ||
|
||
export default MandateMemberModal; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Member } from '@/types'; | ||
|
||
export interface MemberModalProps { | ||
member: Member; | ||
isOpen: boolean; | ||
onClose: () => void; | ||
} |