feat: ArticleLink 링크 기능 추가
This commit is contained in:
parent
257a18652d
commit
4587ea47af
@ -1,10 +1,14 @@
|
||||
import { Link } from 'react-router-dom';
|
||||
import styles from './ArticleLink.module.css';
|
||||
|
||||
export default function ArticleLink() {
|
||||
export default function ArticleLink({ path, title, noticeDate }) {
|
||||
return (
|
||||
<div className={styles.articleLink}>
|
||||
<span className={styles.note}>공지사항</span>
|
||||
<span className={styles.date}>07-12 14:34</span>
|
||||
</div>
|
||||
<Link
|
||||
to={path}
|
||||
className={styles.articleLink}
|
||||
>
|
||||
<span className={styles.note}>{title}</span>
|
||||
<span className={styles.date}>{noticeDate}</span>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user