-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
87 additions
and
68 deletions.
There are no files selected for viewing
10 changes: 4 additions & 6 deletions
10
src/entities/ideal_partner/api/__mock__/idealPartner.mock.ts
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 |
---|---|---|
@@ -1,18 +1,16 @@ | ||
import { IdealPartner } from 'src/entities/ideal_partner/model/idealPartnerStore'; | ||
|
||
export const MockIdealPartner: IdealPartner = { | ||
imageDtoList: [], | ||
ageRange: { max: 25, min: 20 }, | ||
drinking: { drinkingAmount: '주 1-2회 가볍게는 괜찮아요', drinkingCategory: 'ONE_TWO_TIMES_A_WEEK' }, | ||
heightRange: { max: 180, min: 175 }, | ||
hobbies: [{ name: '맛집탐방' }, { name: '뜨개질' }], | ||
hobbies: 'NOT_IMPORTANT', | ||
images: [], | ||
locations: [ | ||
{ city: { cityName: '서울시', city: 'SEOUL' }, town: [{ town: 'GANGNAM', townName: '강남구' }] }, | ||
{ city: { cityName: '경기도', city: 'GYEONGGI' }, town: [{ town: 'SUWON', townName: '수원시' }] }, | ||
], | ||
locations: 'IMPORTANT', | ||
religion: { religionCategory: 'ETC', religionName: '' }, | ||
requiredOptions: [], | ||
smoking: { smokingAmount: '', smokingCategory: 'NON_SMOKER' }, | ||
smoking: { smokingAmount: '', smokingCategory: 'DOESNT_MATTER' }, | ||
style: '눈이 크신 분', | ||
toMatchMaker: '잘 부탁드립니다 !', | ||
}; |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { LocationCitiesItem, LocationTownsItem } from 'src/types'; | ||
import { UserInfoLocationCitiesItem, UserInfoLocationTownsItem } from 'src/types'; | ||
|
||
export type Location = { | ||
city: City; | ||
town: Town[]; | ||
}; | ||
|
||
export type City = { | ||
city: LocationCitiesItem; | ||
city: UserInfoLocationCitiesItem; | ||
cityName: string; | ||
}; | ||
|
||
export type Town = { | ||
town: LocationTownsItem; | ||
town: UserInfoLocationTownsItem; | ||
townName: string; | ||
}; |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { Drinking } from '../../../types'; | ||
import { t } from 'i18next'; | ||
import { IdealPartnerDrinking, UserInfoDrinking } from 'src/types'; | ||
|
||
export const getDrinkingText = (drinking: Drinking) => { | ||
return drinking.drinkingCategory === 'ETC' ? drinking.drinkingAmount : t(`DRINKING_${drinking.drinkingCategory}`); | ||
export const getDrinkingText = (drinking: UserInfoDrinking | IdealPartnerDrinking) => { | ||
return t(`DRINKING_${drinking.drinkingCategory}`); | ||
}; |
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
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