Refactor: 변경 이름에 맞게 수정

This commit is contained in:
정현조 2024-09-18 17:13:53 +09:00
parent cf35ca5b67
commit 3e1e9bb23f

View File

@ -2,7 +2,7 @@ import { useState } from 'react';
import CloseButton from './CloseButton';
import ProgressButton from './ProgressButton';
import FileList from './FileList';
import { uploadFiles } from '@/api/upload';
import { uploadFilesToProject } from '@/api/upload';
interface ImageUploadModalProps {
title: string;
@ -39,7 +39,7 @@ export default function ImageUploadModal({ title, buttonText, onClose }: ImageUp
const handleUpload = async () => {
setIsUploading(true);
await uploadFiles(
await uploadFilesToProject(
files,
setUploadProgress,
() => {