Skip to content

Commit

Permalink
[FE]: 온점 삭제 및 ~다 체를 ~요 체로 변경 (#444)
Browse files Browse the repository at this point in the history
* fix: 온점 삭제 및 ~다 체를 ~요 체로 변경

* chore: 오타 수정

* fix: RevieZone navigate 경로 오류 수정
  • Loading branch information
BadaHertz52 authored Aug 20, 2024
1 parent 6530e65 commit ab5ca23
Show file tree
Hide file tree
Showing 19 changed files with 102 additions and 103 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/common/LongReviewItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const LongReviewItem = ({
$style={style}
onChange={handleWriteTextarea}
onBlur={handleBlur}
placeholder={`최소 ${minLength}자 이상, 최대 ${maxLength}자까지 입력 가능해요.`}
placeholder={`최소 ${minLength}자 이상, 최대 ${maxLength}자까지 입력 가능해요`}
{...rest}
/>
<S.TextareaInfoContainer>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/common/RevieweeComments/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ interface RevieweeCommentsProps {
comment: string;
}

const DEFAULT_COMMENTS = '안녕하세요! 리뷰 잘 부탁드립니다.';
const DEFAULT_COMMENTS = '안녕하세요! 리뷰 잘 부탁드려요';

const RevieweeComments = ({ comment }: RevieweeCommentsProps) => {
return <S.RevieweeComments>{comment || DEFAULT_COMMENTS}</S.RevieweeComments>;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/layouts/Topbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Logo from './components/Logo';
import SidebarOpenButton from './components/SidebarOpenButton';
import * as S from './styles';

// const USER_SEARCH_PLACE_HOLDER = '사용자를 입력해주세요.';
// const USER_SEARCH_PLACE_HOLDER = '사용자를 입력해주세요';

interface TopbarProps {
openSidebar: () => void;
Expand Down
16 changes: 8 additions & 8 deletions frontend/src/constants/errorMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ interface ApiErrorMessage {
}

export const API_ERROR_MESSAGE: ApiErrorMessage = {
400: '잘못된 요청이에요.',
401: '인증을 실패했어요.',
403: '요청권한이 없어요.',
404: '요청하신 내용을 찾을 수 없어요.',
422: '올바르지 않은 데이터 형식이에요.',
serverError: '서버 오류가 발생했어요.',
400: '잘못된 요청이에요',
401: '인증을 실패했어요',
403: '요청권한이 없어요',
404: '요청하신 내용을 찾을 수 없어요',
422: '올바르지 않은 데이터 형식이에요',
serverError: '서버 오류가 발생했어요',
};

export const SERVER_ERROR_REGEX = /^5\d{2}$/;

export const ROUTE_ERROR_MESSAGE = '찾으시는 페이지가 없어요.';
export const ROUTE_ERROR_MESSAGE = '찾으시는 페이지가 없어요';

export const INVALID_REVIEW_PASSWORD_MESSAGE = '올바르지 않은 비밀번호예요.';
export const INVALID_REVIEW_PASSWORD_MESSAGE = '올바르지 않은 비밀번호예요';
2 changes: 1 addition & 1 deletion frontend/src/constants/review.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export const REVIEW = {
};

export const REVIEW_MESSAGE = {
answerMaxLength: `최대 ${REVIEW.answerMaxLength}자까지 입력 가능해요.`,
answerMaxLength: `최대 ${REVIEW.answerMaxLength}자까지 입력 가능해요`,
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface UseGetDataToWriteProps {
}
const useGetDataToWrite = ({ reviewRequestCode }: UseGetDataToWriteProps) => {
const fetchReviewFormData = async (reviewRequestCode: string | undefined) => {
if (!reviewRequestCode) throw new Error('reviewRequestCode가 undefined에요.');
if (!reviewRequestCode) throw new Error('reviewRequestCode가 undefined에요');

const result = await getDataToWriteReviewApi(reviewRequestCode);
return result;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/hooks/useLongReviewItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const useLongReviewItem = ({ minLength, maxLength, initialValue, required }: Use

if (errorOnRequired || errorOnNotRequired) {
setIsError(true);
setErrorMessage(`최소 ${minLength}자 이상 작성해 주세요.`);
setErrorMessage(`최소 ${minLength}자 이상 작성해 주세요`);
} else {
setIsError(false);
setErrorMessage('');
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/hooks/useReviewForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const useReviewForm = ({ dataToWrite }: UseReviewFormProps) => {

const handleKeywordButtonClick = (keyword: Keyword) => {
if (selectedKeywords.length === REVIEW.keywordMaxCount && !selectedKeywords.includes(keyword.id)) {
setErrorMessage('키워드는 최대 5개까지 선택할 수 있어요.');
setErrorMessage('키워드는 최대 5개까지 선택할 수 있어요');
}

setSelectedKeywords((prev) =>
Expand Down
14 changes: 7 additions & 7 deletions frontend/src/mocks/mockData/detailedReviewMockData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ export const DETAILED_REVIEW_MOCK_DATA: DetailReviewData = {
sections: [
{
sectionId: 1,
header: `💡 ${REVIEWEENAME}와 함께 한 기억을 떠올려볼게요.`,
header: `💡 ${REVIEWEENAME}와 함께 한 기억을 떠올려볼게요`,
questions: [
{
questionId: 1,
required: true,
questionType: 'CHECKBOX',
content: `프로젝트 기간 동안, ${REVIEWEENAME}의 강점이 드러났던 순간을 선택해주세요.`,
content: `프로젝트 기간 동안, ${REVIEWEENAME}의 강점이 드러났던 순간을 선택해주세요`,
optionGroup: {
optionGroupId: 1,
minCount: 1,
Expand All @@ -41,26 +41,26 @@ export const DETAILED_REVIEW_MOCK_DATA: DetailReviewData = {
questionId: 2,
required: true,
questionType: 'CHECKBOX',
content: `${REVIEWEENAME}에서 어떤 부분이 인상 깊었는지 선택해주세요.`,
content: `${REVIEWEENAME}에서 어떤 부분이 인상 깊었는지 선택해주세요`,
optionGroup: {
optionGroupId: 1,
minCount: 1,
maxCount: 3,
options: [
{
optionId: 4,
content: '반대 의견을 내더라도 듣는 사람이 기분 나쁘지 않게 이야기해요.',
content: '반대 의견을 내더라도 듣는 사람이 기분 나쁘지 않게 이야기해요',
isChecked: true,
},
{ optionId: 5, content: '팀원들의 의견을 잘 모아서 회의가 매끄럽게 진행되도록 해요.', isChecked: true },
{ optionId: 5, content: '팀원들의 의견을 잘 모아서 회의가 매끄럽게 진행되도록 해요', isChecked: true },
],
},
},
{
questionId: 3,
required: true,
questionType: 'TEXT',
content: '위에서 선택한 사항에 대해 조금 더 자세히 설명해주세요.',
content: '위에서 선택한 사항에 대해 조금 더 자세히 설명해주세요',
optionGroup: null,
answer: '쑤쑤 쑤퍼노바 인상깊어요',
},
Expand Down Expand Up @@ -88,7 +88,7 @@ export const DETAILED_REVIEW_MOCK_DATA: DetailReviewData = {
questionId: 5,
required: false,
questionType: 'TEXT',
content: `${REVIEWEENAME}에게 전하고 싶은 다른 리뷰가 있거나 응원의 말이 있다면 적어주세요.`,
content: `${REVIEWEENAME}에게 전하고 싶은 다른 리뷰가 있거나 응원의 말이 있다면 적어주세요`,
optionGroup: null,
answer: '응원합니다 화이팅!!',
},
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/mocks/mockData/reviewWritingData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export const REVIEW_WRITING_DATA: WritingReviewInfoData = {
revieweeName: 'chysis',
projectName: 'woowacourse 6th',
questions: [
{ id: 0, content: '동료의 개발 역량 향상을 위해 피드백을 남겨 주세요.' },
{ id: 1, content: '동료의 소프트 스킬의 성장을 위해 피드백을 남겨 주세요.' },
{ id: 0, content: '동료의 개발 역량 향상을 위해 피드백을 남겨 주세요' },
{ id: 1, content: '동료의 소프트 스킬의 성장을 위해 피드백을 남겨 주세요' },
{ id: 2, content: '팀 동료로 근무한다면 같이 일하고 싶은 개발자인가요?' },
],
keywords: [
Expand Down
Loading

0 comments on commit ab5ca23

Please sign in to comment.