Skip to content

Commit

Permalink
Fix: #241 경로 정리 & 폼 아이디 & spinner 조건 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-bear98 committed Oct 24, 2024
1 parent 4463a4b commit 6ec21ef
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/modal/project/UpdateModalProject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ import { findUserByTeam } from '@services/teamService';
import useAxios from '@hooks/useAxios';
import { PROJECT_DEFAULT_ROLE, PROJECT_ROLES } from '@constants/role';
import Spinner from '@components/common/Spinner';
import { useReadProjectUserRoleList, useReadProjectDetail } from '@hooks/query/useProjectQuery';
import type { User } from '@/types/UserType';
import type { Team } from '@/types/TeamType';
import type { TeamSearchCallback } from '@/types/SearchCallbackType';
import type { Project, ProjectForm } from '@/types/ProjectType';

import { useReadProjectUserRoleList, useReadProjectDetail } from '@/hooks/query/useProjectQuery';

type UpdateModalProjectProps = {
projectId: Project['projectId'];
onClose: () => void;
Expand Down Expand Up @@ -76,15 +75,15 @@ export default function UpdateModalProject({ projectId, onClose: handleClose }:
handleClose();
};

if (isProjectLoading) {
if (isProjectLoading || isProjectCoworkersLoading) {
return <Spinner />;
}

return (
<ModalPortal>
<ModalLayout onClose={handleClose}>
<FormProvider {...methods}>
<form id="updateTeamForm" onSubmit={handleSubmit(handleFormSubmit)}>
<form id={updateProjectFormId} onSubmit={handleSubmit(handleFormSubmit)}>
<DuplicationCheckInput
id="projectName"
label="프로젝트 명"
Expand Down

0 comments on commit 6ec21ef

Please sign in to comment.