-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/community' into develop
- Loading branch information
Showing
88 changed files
with
2,462 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
'use client'; | ||
import dynamic from 'next/dynamic'; | ||
import React from 'react'; | ||
import { useCurrentTalkStore } from '@/store/currentTalk.store'; | ||
import InterestFilter from './interest/InterestFilter'; | ||
import PostsLayout from './shared/PostsLayout'; | ||
import MainContainer from '../shared/MainContainer'; | ||
import WritePostButton from './shared/WritePostButton'; | ||
import { useModalStore } from '@/store/modal.store'; | ||
import CreateModal from './shared/modal/CreateModal'; | ||
|
||
const CommunityHeader = dynamic( | ||
() => import('@/components/community/shared/CommunityHeader'), | ||
{ ssr: false } | ||
); | ||
const PositionFilter = dynamic( | ||
() => import('@/components/community/career/PositionFilter'), | ||
{ ssr: false } | ||
); | ||
|
||
const Communityindex = () => { | ||
const { open } = useModalStore(); | ||
const { currentTalk } = useCurrentTalkStore(); | ||
return ( | ||
<MainContainer> | ||
<CommunityHeader /> | ||
{currentTalk === 'career' ? <PositionFilter /> : <InterestFilter />} | ||
<PostsLayout /> | ||
<WritePostButton /> | ||
{open ? <CreateModal /> : ''} | ||
</MainContainer> | ||
); | ||
}; | ||
|
||
export default Communityindex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import React from 'react'; | ||
import ToBackComunity from './shared/ToBackComunity'; | ||
import PostDetail from './shared/PostDetail'; | ||
import CommentsLayout from './comments/CommentsLayout'; | ||
import WriteCommentLayout from './comments/WriteCommentLayout'; | ||
import { useModalStore } from '@/store/modal.store'; | ||
import dynamic from 'next/dynamic'; | ||
import { useRouter } from 'next/router'; | ||
import { useQuery } from 'react-query'; | ||
import { getPostDetail } from './remote/post'; | ||
import ConfirmModal from './shared/modal/ConfirmModal'; | ||
|
||
const DeleteModal = dynamic(() => import('./shared/modal/DeleteModal'), { ssr: false }); | ||
|
||
const PostDetailIndex = () => { | ||
const { open } = useModalStore(); | ||
const router = useRouter(); | ||
const { id } = router.query as { id: string }; | ||
|
||
const { data: postData } = useQuery(['post', id], () => getPostDetail(id), { | ||
enabled: id != null | ||
}); | ||
|
||
if (postData?.status == 'FAIL') { | ||
return <ConfirmModal />; | ||
} | ||
|
||
return ( | ||
<div className="mx-4"> | ||
<div className="h-[60px]" /> | ||
<ToBackComunity /> | ||
<PostDetail postData={postData && postData} /> | ||
{/* 구분선 */} | ||
<div className="w-full h-1 bg-gray-100" /> | ||
{/* 댓글자리 */} | ||
<CommentsLayout /> | ||
{/* 댓글입력자리 */} | ||
<WriteCommentLayout postId={id} /> | ||
{open ? <DeleteModal /> : ''} | ||
</div> | ||
); | ||
}; | ||
|
||
export default PostDetailIndex; |
Oops, something went wrong.