Skip to content

Commit

Permalink
Merge pull request #170 from bsideproject/moon
Browse files Browse the repository at this point in the history
[feat] 포스팅된 룸 정보 없을 때 페이지 상세 내용 수정
  • Loading branch information
KinDDoGGang authored Sep 27, 2023
2 parents b3ecc91 + faed1ec commit 97809c0
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions pages/userInfo/myPostings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import NoPosting from '@/public/icons/noPosting.svg';
import Step1 from '@/pages/room/addRoom/step1.tsx';
import useModal from '@/hooks/useModal';

import DefaultLayout from '@/components/layouts/DefaultLayout';
//import { useRouter } from 'next/router';


Expand Down Expand Up @@ -31,8 +31,8 @@ export default function MyPosting({ roomInfo }: MyPostingProps) {
*/
const NoPostings = () => {
const noPostingStyle = 'text-[20px] font-bold mt-[29px] text-center';
const containerStyle = 'h-screen flex flex-col items-center justify-center';

const containerStyle = 'h-screen flex flex-col items-center justify-start mt-[135px]'; // 'justify-start'로 변경
return (
<div className={containerStyle}>
<NoPosting />
Expand Down Expand Up @@ -68,4 +68,13 @@ export default function MyPosting({ roomInfo }: MyPostingProps) {
return (
(roomInfo || []).length === 0 ? <NoPostings /> : <MyRooms />
)
}

}

MyPosting.getLayout = function getLayout(page: React.ReactElement) {
const handleGoBack = () => {
window.history.back();
}
return <DefaultLayout children={page} title={'My postings'} handleButtonClick={handleGoBack} />;
};

0 comments on commit 97809c0

Please sign in to comment.