Skip to content

Commit

Permalink
Chore: #313 프로필 파일 타입 재정의 및 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
Seok93 committed Dec 26, 2024
1 parent 58f082e commit d313d39
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/mocks/mockData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ import type { Project } from '@/types/ProjectType';
import type { ProjectStatus } from '@/types/ProjectStatusType';
import type { Task } from '@/types/TaskType';
import type { Role } from '@/types/RoleType';
import type { ProjectUser, TaskFileForMemory, TaskUser, TeamUser, UploadTaskFile } from '@/types/MockType';

type ImageInfo = {
userId: number;
file: Blob;
uploadName: string;
};

export const JWT_TOKEN_DUMMY = 'mocked-header.mocked-payload-4.mocked-signature';
import type {
ProfileFileForMemory,
ProjectUser,
TaskFileForMemory,
TaskUser,
TeamUser,
UploadTaskFile,
} from '@/types/MockType';

export const VERIFICATION_CODE_DUMMY = '1234';
export const TEMP_PASSWORD_DUMMY = '!1p2l3nqlz';
Expand Down Expand Up @@ -814,4 +813,4 @@ export const FILE_DUMMY: TaskFileForMemory[] = [
];

// MSW 프로필 이미지 임시 저장을 위한 변수
export const PROFILE_IMAGE_DUMMY: ImageInfo[] = [];
export const PROFILE_IMAGE_DUMMY: ProfileFileForMemory[] = [];
6 changes: 6 additions & 0 deletions src/types/MockType.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ export type TaskFileForMemory = {
file: Blob;
uploadName: string;
};

export type ProfileFileForMemory = {
userId: number;
file: Blob;
uploadName: string;
};

0 comments on commit d313d39

Please sign in to comment.