diff --git a/components/agenda/teamDetail/TeamButtons.tsx b/components/agenda/teamDetail/TeamButtons.tsx index 212a2ce4d..b87d5c2a4 100644 --- a/components/agenda/teamDetail/TeamButtons.tsx +++ b/components/agenda/teamDetail/TeamButtons.tsx @@ -76,7 +76,7 @@ const TeamButtons = ({ label: '팀 나가기', description: '확인 버튼을 누르면, 팀에서 나가게 됩니다.', onProceed: () => - manageTeamDetail && manageTeamDetail('PATCH', 'team/cancel'), + manageTeamDetail && manageTeamDetail('PATCH', 'team/drop'), }); } else if (authority === Authority.LEADER) { return renderButton( diff --git a/hooks/useAxiosWithToast.ts b/hooks/useAxiosWithToast.ts index 92338c1c0..16e7b0f7a 100644 --- a/hooks/useAxiosWithToast.ts +++ b/hooks/useAxiosWithToast.ts @@ -87,7 +87,7 @@ export default function useAxiosWithToast(instance: AxiosInstance) { setSnackbar({ toastName: `response default`, severity: 'success', - message: `${message || '성공했습니다.'}'`, + message: `${message} 👍`, clicked: true, }); } diff --git a/pages/agenda/[agendaKey]/[teamUID]/index.tsx b/pages/agenda/[agendaKey]/[teamUID]/index.tsx index 9f9652e71..bf3c5653e 100644 --- a/pages/agenda/[agendaKey]/[teamUID]/index.tsx +++ b/pages/agenda/[agendaKey]/[teamUID]/index.tsx @@ -61,7 +61,7 @@ export default function TeamDetail() { const sendRequest = useFetchRequest().sendRequest; const shareTeamInfo = () => { - alert('공유하기'); + alert('링크가 복사되었습니다.'); const url = window.location.href; navigator.clipboard.writeText(url); }; diff --git a/utils/agenda/getAgendaSnackBarInfo.ts b/utils/agenda/getAgendaSnackBarInfo.ts index a639af4a3..4bb6d0f8b 100644 --- a/utils/agenda/getAgendaSnackBarInfo.ts +++ b/utils/agenda/getAgendaSnackBarInfo.ts @@ -62,9 +62,13 @@ export default function getAgendaSnackBarInfo( severity: 'info', message: '팀이 폭파되었습니다.', }, + '/team/drop': { + severity: 'info', + message: '팀에서 나갔습니다.', + }, '/team/confirm': { severity: 'success', - message: '대회 정보가 성공적으로 확정되었습니다.', + message: '팀이 성공적으로 확정되었습니다.', }, '/ticket': { severity: 'success', @@ -77,6 +81,6 @@ export default function getAgendaSnackBarInfo( if (result) { return { severity: result.severity, message: result.message }; } else { - return { severity: 'default', message: '뭔진 모르겠지만 성공!.' }; + return { severity: 'default', message: '성공했습니다.' }; } }