-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: 디스커션 리스트 페이지 추가 및 index 페이지 import 정리 * feat: DiscussionList Header에 작성 버튼 추가 및 DiscussionListHeader 분리 - DiscussionList Header에 작성 버튼 추가 - DiscussionListHeader 분리 - DiscussionList/index.tsx를 DiscussionListContent로 변경 - DiscussionListContent의 스타일 요소 네이밍 수정 * fix: 디스커션 상세 페이지 작성하기 버튼 추가 * refactor: navigate 변수명 수정 * feat: 타이틀 클릭 시 리스트 이동하도록 추가 * fix: msw 해제
- Loading branch information
1 parent
1052b42
commit aa6b684
Showing
10 changed files
with
155 additions
and
68 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
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
21 changes: 21 additions & 0 deletions
21
frontend/src/components/DiscussionList/DiscussionListHeader.tsx
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,21 @@ | ||
import { useNavigate } from 'react-router-dom'; | ||
import Button from '../common/Button/Button'; | ||
import * as S from './DiscussionList.styled'; | ||
import { ROUTES } from '@/constants/routes'; | ||
|
||
export default function DiscussionListHeader() { | ||
const navigate = useNavigate(); | ||
|
||
const handleToSubmitDiscussion = () => { | ||
navigate(ROUTES.submitDiscussion); | ||
}; | ||
|
||
return ( | ||
<S.HeaderTitleWrapper> | ||
<S.HeaderTitle>💬 Discussion</S.HeaderTitle> | ||
<Button variant="primary" onClick={handleToSubmitDiscussion}> | ||
작성하기 | ||
</Button> | ||
</S.HeaderTitleWrapper> | ||
); | ||
} |
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
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
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
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