From f66dade9da211729a39fe67c09142015f6cf8689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=82=98=EC=97=B0?= Date: Mon, 11 Nov 2024 12:09:31 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=9D=B8=EA=B3=B5=EC=A7=80=EB=8A=A5?= =?UTF-8?q?=20=EA=B8=B0=EB=8A=A5=20=EC=9D=B4=EC=9A=A9=20=EB=B6=88=EA=B0=80?= =?UTF-8?q?=20=EC=95=88=EB=82=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 추후 기능 재개시 주석 해제 필요 - src/pages/Main/TestMake/TestMake.tsx - src/pages/Main/MyScript/MyScript.tsx --- src/pages/Main/MyScript/MyScript.tsx | 14 +++++++++--- src/pages/Main/TestMake/TestMake.tsx | 32 +++++++++++++++------------- 2 files changed, 28 insertions(+), 18 deletions(-) diff --git a/src/pages/Main/MyScript/MyScript.tsx b/src/pages/Main/MyScript/MyScript.tsx index 86c9ffd..fbfcf04 100644 --- a/src/pages/Main/MyScript/MyScript.tsx +++ b/src/pages/Main/MyScript/MyScript.tsx @@ -1,5 +1,5 @@ import { useEffect, useState } from 'react'; -import { Link } from 'react-router-dom'; +//import { Link } from 'react-router-dom'; import { useQuery } from '@tanstack/react-query'; import ScriptDetailModal from '../../../components/templates/modals/ScriptDetailModal/ScriptDetailModal'; import ScriptItem from '../../../components/molecules/ScriptItem/ScriptItem'; @@ -37,9 +37,17 @@ const MyScript = () => {
최근 스크립트
- + {/* 녹음 시작 - + */} + {/* 임시로 이용 불가 조치 */} +
+ addAlert('현재 인공지능 기능은 이용 불가합니다.', 'error') + } + > + 녹음 시작 +
{!data || data?.object?.length === 0 ? (
diff --git a/src/pages/Main/TestMake/TestMake.tsx b/src/pages/Main/TestMake/TestMake.tsx index d08d6e6..b41673b 100644 --- a/src/pages/Main/TestMake/TestMake.tsx +++ b/src/pages/Main/TestMake/TestMake.tsx @@ -1,4 +1,4 @@ -import { useNavigate } from 'react-router-dom'; +//import { useNavigate } from 'react-router-dom'; import { useQuery } from '@tanstack/react-query'; import TestOptionSelector from '../../../components/organisms/TestOptionSelector/TestOptionSelector'; import ScriptItem from '../../../components/molecules/ScriptItem/ScriptItem'; @@ -10,7 +10,7 @@ import useServerErrorToast from '../../../hooks/useServerErrorToast'; import styles from './TestMake.module.scss'; const TestMake = () => { - const navigate = useNavigate(); + //const navigate = useNavigate(); const addAlert = useAlertStore((state) => state.addAlert); const { data, isError } = useQuery({ @@ -23,9 +23,9 @@ const TestMake = () => { const { lectureId, - questionCount, - questionTypes, - timeLimit, + // questionCount, + // questionTypes, + // timeLimit, setLectureId, setScheduleElementId, setTestName, @@ -42,16 +42,18 @@ const TestMake = () => { }; const handleTestStartBtnClick = () => { - if ( - lectureId.length > 0 && - questionCount > 0 && - questionTypes.length > 0 && - (timeLimit === null || timeLimit > 0) - ) { - navigate('/test'); - } else { - addAlert('스크립트와 문제 유형, 문제 개수를 모두 선택해주세요.', 'error'); - } + // if ( + // lectureId.length > 0 && + // questionCount > 0 && + // questionTypes.length > 0 && + // (timeLimit === null || timeLimit > 0) + // ) { + // navigate('/test'); + // } else { + // addAlert('스크립트와 문제 유형, 문제 개수를 모두 선택해주세요.', 'error'); + // } + // 임시로 이용 불가 조치 + addAlert('현재 인공지능 기능은 이용 불가합니다.', 'error'); }; return (