-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Formatting: #104 React Query 커스텀훅명 변경 * Feat: #104 일정 목록에 대해 더미 처리에서 커스텀훅 처리로 변경 * Feat: #104 일정 순서 변경 API를 위한 React Query 처리 추가 * Feat: #104 일정 순서 변경 API MSW 처리 추가 * Feat: #104 일정 순서 변경 기능 구현 * Chore: #104 updateStatus 함수 JSDoc 수정
- Loading branch information
Showing
9 changed files
with
149 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { PROJECT_DUMMY, ROLE_DUMMY, STATUS_DUMMY, TASK_DUMMY, TEAM_DUMMY, USER_DUMMY } from '@mocks/mockData'; | ||
import type { User } from '@/types/UserType'; | ||
import type { Role } from '@/types/RoleType'; | ||
import type { Team } from '@/types/TeamType'; | ||
import type { Project } from '@/types/ProjectType'; | ||
import type { ProjectStatus } from '@/types/ProjectStatusType'; | ||
import type { Task } from '@/types/TaskType'; | ||
|
||
type Hash<T> = { | ||
[key: string | number]: T; | ||
}; | ||
|
||
// ToDo: MSW 처리중 해쉬 테이블 처리를 사용하는 부분 대체해주기 | ||
export const USERS_HASH: Hash<User> = {}; | ||
USER_DUMMY.forEach((user) => (USERS_HASH[user.userId] = user)); | ||
|
||
export const ROLES_HASH: Hash<Role> = {}; | ||
ROLE_DUMMY.forEach((role) => (ROLES_HASH[role.roleId] = role)); | ||
|
||
export const TEAMS_HASH: Hash<Team> = {}; | ||
TEAM_DUMMY.forEach((team) => (TEAMS_HASH[team.teamId] = team)); | ||
|
||
export const PROJECTS_HASH: Hash<Project> = {}; | ||
PROJECT_DUMMY.forEach((project) => (PROJECTS_HASH[project.projectId] = project)); | ||
|
||
export const STATUSES_HASH: Hash<ProjectStatus> = {}; | ||
STATUS_DUMMY.forEach((status) => (STATUSES_HASH[status.statusId] = status)); | ||
|
||
export const TASK_HASH: Hash<Task> = {}; | ||
TASK_DUMMY.forEach((task) => (TASK_HASH[task.taskId] = task)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters