Refactor: 변경 이름에 맞게 수정
This commit is contained in:
parent
cf35ca5b67
commit
3e1e9bb23f
@ -2,7 +2,7 @@ import { useState } from 'react';
|
|||||||
import CloseButton from './CloseButton';
|
import CloseButton from './CloseButton';
|
||||||
import ProgressButton from './ProgressButton';
|
import ProgressButton from './ProgressButton';
|
||||||
import FileList from './FileList';
|
import FileList from './FileList';
|
||||||
import { uploadFiles } from '@/api/upload';
|
import { uploadFilesToProject } from '@/api/upload';
|
||||||
|
|
||||||
interface ImageUploadModalProps {
|
interface ImageUploadModalProps {
|
||||||
title: string;
|
title: string;
|
||||||
@ -39,7 +39,7 @@ export default function ImageUploadModal({ title, buttonText, onClose }: ImageUp
|
|||||||
const handleUpload = async () => {
|
const handleUpload = async () => {
|
||||||
setIsUploading(true);
|
setIsUploading(true);
|
||||||
|
|
||||||
await uploadFiles(
|
await uploadFilesToProject(
|
||||||
files,
|
files,
|
||||||
setUploadProgress,
|
setUploadProgress,
|
||||||
() => {
|
() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user