Skip to content

Commit

Permalink
Formatting: #63 파일 이름 변경에 따른 변수명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Seok93 committed Aug 26, 2024
1 parent 906a0c2 commit 91ce3db
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/user/auth-form/LinkContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChangeEvent, useState } from 'react';
import { FaPlus, FaMinus } from 'react-icons/fa6';
import { useFormContext } from 'react-hook-form';
import { USER_SETTINGS } from '@constants/userSettings';
import { USER_SETTINGS } from '@constants/settings';
import useToast from '@hooks/useToast';

type LinkContainerProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/user/auth-form/ProfileImageContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { GoPlusCircle } from 'react-icons/go';
import { FaRegTrashCan } from 'react-icons/fa6';
import { useFormContext } from 'react-hook-form';
import { convertBytesToString } from '@utils/converter';
import { USER_SETTINGS } from '@constants/userSettings';
import { USER_SETTINGS } from '@constants/settings';
import useToast from '@hooks/useToast';

type ProfileImageContainerProps = {
Expand Down
8 changes: 4 additions & 4 deletions src/constants/formValidationRules.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Validator from '@utils/Validator';
import { deepFreeze } from '@utils/deepFreeze';
import { EMAIL_REGEX, ID_REGEX, NICKNAME_REGEX, PASSWORD_REGEX } from './regex';
import { USER_SETTINGS } from './userSettings';
import { Project } from '@/types/ProjectType';
import { Task } from '@/types/TaskType';
import { EMAIL_REGEX, ID_REGEX, NICKNAME_REGEX, PASSWORD_REGEX } from '@constants/regex';
import { USER_SETTINGS } from '@constants/settings';
import type { Project } from '@/types/ProjectType';
import type { Task } from '@/types/TaskType';

type ValidateOption = { [key: string]: (value: string) => string | boolean };

Expand Down
2 changes: 1 addition & 1 deletion src/constants/regex.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { USER_SETTINGS } from './userSettings';
import { USER_SETTINGS } from '@constants/settings';

export const EMAIL_REGEX = /^[a-z0-9._%+-]+@[a-z0-9-]+\.[a-z]{2,3}(?:\.[a-z]{2,3})?$/i;
export const PHONE_REGEX = /^01([0|1|6|7|8|9])-?([0-9]{3,4})-?([0-9]{4})$/;
Expand Down
5 changes: 5 additions & 0 deletions src/constants/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ export const USER_SETTINGS = Object.freeze({
MAX_NICKNAME_LENGTH: 20,
MAX_EMAIL_LENGTH: 128,
});

export const TASK_SETTINGS = Object.freeze({
MAX_FILE_SIZE: 2 * MB,
MAX_FILE_COUNT: 10,
});
2 changes: 1 addition & 1 deletion src/utils/reduceImageSize.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { USER_SETTINGS } from '@/constants/userSettings';
import { USER_SETTINGS } from '@constants/settings';

const reduceImageSize = (objUrl: string) => {
return new Promise<Blob>((resolve, reject) => {
Expand Down

0 comments on commit 91ce3db

Please sign in to comment.