Skip to content

Commit

Permalink
✨ 글쓰기 버튼 클릭 시 /post로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
ttaerrim committed Nov 22, 2023
1 parent d6f4aeb commit 547eccb
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion app/frontend/src/components/Mogaco/MogacoListHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
import { useNavigate } from 'react-router-dom';

import { Button } from '@/components';
import { PATH } from '@/constants';

import * as styles from './MogacoListHeader.css';

export function MogacoListHeader() {
const navigate = useNavigate();
const onClickPost = () => {
navigate(PATH.POST);
};

return (
<div className={styles.container}>
<div className={styles.filter}>
<span className={styles.selected}>전체</span>
<span>모집 중</span>
<span>모집 마감</span>
</div>
<Button size="medium" type="button" theme="primary" shape="fill">
<Button
size="medium"
type="button"
theme="primary"
shape="fill"
onClick={onClickPost}
>
글쓰기
</Button>
</div>
Expand Down

0 comments on commit 547eccb

Please sign in to comment.