Skip to content

Commit

Permalink
fix: MAILE, FEMAIL -> MALE, FEMALE 오타 수정 (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-dong-su authored Jan 16, 2024
1 parent da8fc37 commit d277851
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/apis/profile/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface ProfileResponse {
isCertifiedStudent: boolean;
imageUrl: string;
nickname: string;
gender: 'MAIL' | 'FEMAIL';
gender: 'MALE' | 'FEMALE';
age: number;
birth: string;
school: string;
Expand All @@ -23,7 +23,7 @@ export interface ProfileRequest {
imageUrl: string;
name: string;
birth: string;
gender: 'MAIL' | 'FEMAIL';
gender: 'MALE' | 'FEMALE';
introduce: string;
personalities: Array<PersonalityType['keywordDTO']>;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
'use client';
import { format } from 'date-fns';
import { motion } from 'framer-motion';
import { useParams, usePathname } from 'next/navigation';

import { useGetProfileById } from '@/apis/profile';
import { useTranslation } from '@/app/i18n/client';
import { Avatar } from '@/components/Avatar';
Expand All @@ -13,9 +17,6 @@ import { personalityList } from '@/constants/personalityList';
import { reliabilities } from '@/constants/reliabilities';
import useAppRouter from '@/hooks/useAppRouter';
import cn from '@/utils/cn';
import { format } from 'date-fns';
import { motion } from 'framer-motion';
import { useParams, usePathname } from 'next/navigation';

interface ProfileDetailProps {
profileData: ReturnType<typeof useGetProfileById>['data'];
Expand Down Expand Up @@ -86,7 +87,7 @@ export default function ProfileDetailSection({ profileData }: ProfileDetailProps
<Divider direction="vertical" className="h-12" />
<Flex className="gap-4" align="center">
<Icon id="16-male" width={16} height={16} />
<span>{gender === 'MAIL' ? t('home.gender.male') : t('home.gender.female')}</span>
<span>{gender === 'MALE' ? t('home.gender.male') : t('home.gender.female')}</span>
</Flex>
<Divider direction="vertical" className="h-12" />
<Flex className="gap-4" align="center">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { useController } from 'react-hook-form';

import { formatBirthDTO } from '../../util';
import { useEditContext } from '../EditProvider.client';
import { usePatchProfile } from '@/apis/profile';
Expand All @@ -12,7 +14,6 @@ import { Tag } from '@/components/Tag';
import { TextField, TextFieldController } from '@/components/TextField';
import { personalityList } from '@/constants/personalityList';
import { useFileUpload } from '@/hooks/useFileUpload';
import { useController } from 'react-hook-form';

import type { ProfileEditState } from '../../type';

Expand Down Expand Up @@ -78,8 +79,8 @@ export default function Step1InputForm({ onNext }: Step1InputFormProps) {
selectedValue={watch('gender')}
onChange={(value) => setValue('gender', value)}
>
<SegmentGroup.Segment value={'MAIL'} label={tc('male')} />
<SegmentGroup.Segment value={'FEMAIL'} label={tc('female')} />
<SegmentGroup.Segment value={'MALE'} label={tc('male')} />
<SegmentGroup.Segment value={'FEMALE'} label={tc('female')} />
</SegmentGroup>
</section>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export default function InputForm() {
selectedValue={watch('gender')}
onChange={(value) => setValue('gender', value)}
>
<SegmentGroup.Segment value="MAIL" label={tc('male')} />
<SegmentGroup.Segment value="FEMAIL" label={tc('female')} />
<SegmentGroup.Segment value="MALE" label={tc('male')} />
<SegmentGroup.Segment value="FEMALE" label={tc('female')} />
</SegmentGroup>
</Flex>
</Flex>
Expand Down
3 changes: 1 addition & 2 deletions src/constants/dummyData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type {
Apply,
Article,
CreateGroupRequest,
EstimateResponse,
GroupDetailResponse,
GroupMember,
Grouping,
Expand Down Expand Up @@ -80,7 +79,7 @@ export const DUMMY_SIGN_UP_DATA = {
},
nickname: '박규리',
birth: '2000-02-14',
gender: 'MAIL',
gender: 'MALE',
personalities: ['OUTGOING'],
};

Expand Down

0 comments on commit d277851

Please sign in to comment.