Skip to content

Commit

Permalink
Fix: 잘 못된 import 방식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seoyoung-min committed Feb 14, 2024
1 parent 6756fc4 commit da6637f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/list/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ItemImagesType, ListCreateType } from '@/lib/types/listType';
import toasting from '@/lib/utils/toasting';
import toastMessage from '@/lib/constants/toastMessage';
import createList from '@/app/_api/list/createList';
import { uploadItemImages } from '@/app/_api/list/uploadItemImages';
import uploadItemImages from '@/app/_api/list/uploadItemImages';

export type FormErrors = FieldErrors<ListCreateType>;

Expand Down Expand Up @@ -101,7 +101,7 @@ export default function CreatePage() {
return { listData, imageData, imageFileList };
};

const { mutate: saveImageMutate, isPending: isUploadingImage } = useMutation({
const { mutate: uploadImageMutate, isPending: isUploadingImage } = useMutation({
mutationFn: uploadItemImages,
retry: 3,
retryDelay: 1000,
Expand All @@ -121,7 +121,7 @@ export default function CreatePage() {
mutationFn: createList,
onSuccess: (data) => {
setNewListId(data.listId);
saveImageMutate({
uploadImageMutate({
listId: data.listId,
imageData: formatData().imageData,
imageFileList: formatData().imageFileList,
Expand Down

0 comments on commit da6637f

Please sign in to comment.