Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

피드 작성 버튼 임시 제거 및 주석 처리 #436

Merged
merged 1 commit into from
Sep 23, 2023
Merged
Show file tree
Hide file tree
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
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