feat: 미리보기 게시글 3개까지만 보이도록 수정

This commit is contained in:
jhynsoo 2024-08-07 10:14:19 +09:00
parent 89a3ea4568
commit f00801e5b6

View File

@ -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}>