feat: 미리보기 게시글 3개까지만 보이도록 수정
This commit is contained in:
parent
89a3ea4568
commit
f00801e5b6
@ -7,10 +7,9 @@ import { useQnas } from '../../hooks/api/useQnas';
|
||||
export default function LearningLectureDetailPage() {
|
||||
const { lectureId } = useParams();
|
||||
const { data: noticesData } = useNotices(lectureId);
|
||||
const notices = noticesData?.data;
|
||||
const notices = noticesData?.data.slice(0, 3);
|
||||
const { data: qnasData } = useQnas(lectureId);
|
||||
const questions = qnasData?.data;
|
||||
// TODO: QnA 훅 작성 후 사용 및 3개까지만 slice 추가
|
||||
const questions = qnasData?.data.slice(0, 3);
|
||||
|
||||
return (
|
||||
<section className={styles.previews}>
|
||||
|
Loading…
Reference in New Issue
Block a user