브랜드 분석 페이지 수정, ado2 컨텐츠 추가, header jwt 인증 작업 .

This commit is contained in:
HyeongBaeYang committed 2026-01-29 13:27:33 +09:00
1 parent 7d4f3c7e05
commit 7ee911f0aa
7 files changed
+865 -139

No files matched your search

+9 -3
View File
@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react';
import { getVideosList } from '../../utils/api';
import { getVideosList, deleteVideo } from '../../utils/api';
import { VideoListItem } from '../../types/api';
interface ADO2ContentsPageProps {
@@ -82,8 +82,14 @@ const ADO2ContentsPage: React.FC<ADO2ContentsPageProps> = ({ onBack }) => {
const handleDelete = async (taskId: string) => {
if (!confirm('이 콘텐츠를 삭제하시겠습니까?')) return;
// TODO: 삭제 API 연동
alert('삭제 기능은 아직 구현되지 않았습니다.');
try {
await deleteVideo(taskId);
// 삭제 성공 후 목록 새로고침
fetchVideos();
} catch (err) {
console.error('Delete failed:', err);
alert('삭제에 실패했습니다.');
}
};
return (