From 2910d65b02abedc70da594a30b46255590bf541e Mon Sep 17 00:00:00 2001 From: ywlee Date: Sun, 1 Oct 2023 19:49:11 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20room=20add=20=EB=B2=84=ED=8A=BC=20?= =?UTF-8?q?=EC=97=B0=EB=8F=99=20=EB=B3=80=EA=B2=BD=20(=EC=83=88=EB=A1=9C?= =?UTF-8?q?=20=EB=A7=8C=EB=93=A0=20=ED=8E=98=EC=9D=B4=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/layouts/RoomListLayout.tsx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/components/layouts/RoomListLayout.tsx b/components/layouts/RoomListLayout.tsx index 7c6f873..db9f4d1 100644 --- a/components/layouts/RoomListLayout.tsx +++ b/components/layouts/RoomListLayout.tsx @@ -1,24 +1,15 @@ import React, { ReactNode } from 'react'; import Header from '@/components/Header/Header.tsx'; -import useModal from '@/hooks/useModal.ts'; -import Step1 from '@/pages/room/addRoom/step1.tsx'; +import { useRouter } from 'next/router'; interface AppLayoutProps { children: ReactNode; } function RoomListLayout({ children }: AppLayoutProps) { - const { openModal } = useModal(); + const router = useRouter(); const handleButtonClick = () => { - openModal({ - props: { - title: 'Add Rooms', - size: 'full', - custom: true, - customHeader: true, - }, - children: , - }); + router.push('/room/add/step1'); }; return (