Skip to content

Commit

Permalink
chore: 임시 제거 및 주석 처리 (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
100Gyeon authored Sep 23, 2023
1 parent 6644567 commit d8ead99
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
5 changes: 3 additions & 2 deletions pages/detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const enum SelectedTab {
const DetailPage = () => {
const router = useRouter();
const id = router.query.id as string;
const [selectedIndex, setSelectedIndex] = useState(SelectedTab.FEED);
const [selectedIndex, setSelectedIndex] = useState(SelectedTab.INFORMATION);
const { data: detailData } = useQueryGetMeeting({ params: { id } });
const { mutate: mutateDeleteMeeting } = useMutationDeleteMeeting({});
const { mutate: mutatePostApplication } = useMutationPostApplication({});
Expand Down Expand Up @@ -51,7 +51,8 @@ const DetailPage = () => {
</STabList>
<Tab.Panels>
<Tab.Panel>
<FeedPanel isMember={detailData?.approved || detailData?.host} />
{/* <FeedPanel isMember={detailData?.approved || detailData?.host} /> */}
<FeedPanel />
</Tab.Panel>
<Tab.Panel>
<InformationPanel detailData={detailData} />
Expand Down
12 changes: 6 additions & 6 deletions src/components/page/meetingDetail/Feed/EmptyView.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { Box } from '@components/box/Box';
import { styled } from 'stitches.config';

interface EmptyViewProps {
isMember: boolean;
}
// interface EmptyViewProps {
// isMember: boolean;
// }

const EmptyView = ({ isMember }: EmptyViewProps) => {
const EmptyView = () => {
return (
<SContent>
<p>아직 작성된 피드가 없어요.</p>

{isMember && (
{/* {isMember && (
<>
<p>첫번째 작성자가 되어볼까요?</p>
<button>작성하러 가기</button>
</>
)}
)} */}
</SContent>
);
};
Expand Down
10 changes: 5 additions & 5 deletions src/components/page/meetingDetail/Feed/FeedPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import React from 'react';
import { styled } from 'stitches.config';
import EmptyView from './EmptyView';

interface FeedPanelProps {
isMember: boolean;
}
// interface FeedPanelProps {
// isMember: boolean;
// }

const FeedPanel = ({ isMember }: FeedPanelProps) => {
const FeedPanel = () => {
return (
<SContainer>
<EmptyView isMember={isMember} />
<EmptyView />
</SContainer>
);
};
Expand Down

0 comments on commit d8ead99

Please sign in to comment.