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';
|
import styles from './ArticleLink.module.css';
|
||||||
|
|
||||||
export default function ArticleLink() {
|
export default function ArticleLink({ path, title, noticeDate }) {
|
||||||
return (
|
return (
|
||||||
<div className={styles.articleLink}>
|
<Link
|
||||||
<span className={styles.note}>공지사항</span>
|
to={path}
|
||||||
<span className={styles.date}>07-12 14:34</span>
|
className={styles.articleLink}
|
||||||
</div>
|
>
|
||||||
|
<span className={styles.note}>{title}</span>
|
||||||
|
<span className={styles.date}>{noticeDate}</span>
|
||||||
|
</Link>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user