Skip to content

Commit

Permalink
[feat] room add 버튼 연동 변경 (새로 만든 페이지
Browse files Browse the repository at this point in the history
  • Loading branch information
zestlee1106 committed Oct 1, 2023
1 parent 216bc33 commit 2910d65
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions components/layouts/RoomListLayout.tsx
Original file line number Diff line number Diff line change
@@ -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: <Step1 />,
});
router.push('/room/add/step1');
};

return (
Expand Down

0 comments on commit 2910d65

Please sign in to comment.