Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions src/components/pages/meetup/meetup-buttons/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { useRouter } from 'next/navigation';
// import { useRouter } from 'next/navigation';

import { useEffect, useState } from 'react';

Expand Down Expand Up @@ -30,11 +30,12 @@ export const MeetupButtons = ({
}: Props) => {
const [isHost, setIsHost] = useState<boolean | null>(null);
const { open } = useModal();
const { push } = useRouter();
// const { push } = useRouter();

// 그룹 채팅방 아이디 추가해야됨
const onEnterChatClick = () => {
push('/message/id');
alert('채팅 파업');
// push('/message/id');
};

useEffect(() => {
Expand All @@ -56,11 +57,7 @@ export const MeetupButtons = ({
>
{isHost ? '모임 취소' : '모임 탈퇴'}
</Button>
<Button
className='flex-2'
disabled={participantCount >= maxParticipants}
onClick={onEnterChatClick}
>
<Button className='flex-2' onClick={onEnterChatClick}>
채팅 입장
</Button>
</div>
Expand Down