- 가맹점관리 _ 등록현황 _ 에스크로 가입현황 섹션 에스크로 가입 Enum Value 다국어 적용
This commit is contained in:
@@ -1,13 +1,24 @@
|
||||
import { TFunction } from 'i18next';
|
||||
import { UsageStatus } from './types';
|
||||
import { EscrowStatus, UsageStatus } from './types';
|
||||
|
||||
export const getUsageStatusName = (t: TFunction, usageStatus?: string): string => {
|
||||
if (!usageStatus) return '';
|
||||
|
||||
const statusMap: Record<string, string> = {
|
||||
[UsageStatus.AVAILABLE]: t('merchant.available'),
|
||||
[UsageStatus.SUSPENDED]: t('merchant.suspended'),
|
||||
[UsageStatus.AVAILABLE]: t('merchant.usageStatus.available'),
|
||||
[UsageStatus.SUSPENDED]: t('merchant.usageStatus.suspended'),
|
||||
};
|
||||
|
||||
return statusMap[usageStatus] || usageStatus;
|
||||
};
|
||||
|
||||
export const getEscrowStatusName = (t: TFunction, escrowStatus?: string): string => {
|
||||
if (!escrowStatus) return '';
|
||||
|
||||
const statusMap: Record<string, string> = {
|
||||
[EscrowStatus.ACTIVE]: t('merchant.escrowStatus.active'),
|
||||
[EscrowStatus.INACTIVE]: t('merchant.escrowStatus.inactive')
|
||||
};
|
||||
|
||||
return statusMap[escrowStatus] || escrowStatus;
|
||||
};
|
||||
@@ -1,6 +1,7 @@
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { SectionTitleArrow } from '@/entities/common/ui/section-title-arrow';
|
||||
import { Escrow, SectionKeys } from '../../model/types';
|
||||
import { getEscrowStatusName } from '../../model/constant';
|
||||
import SlideDown from 'react-slidedown';
|
||||
import 'react-slidedown/lib/slidedown.css';
|
||||
import { useEffect, useState } from 'react';
|
||||
@@ -66,7 +67,7 @@ export const EscrowSection = ({
|
||||
</li>
|
||||
<li className="kv-row">
|
||||
<span className="k">{t('merchant.nicecrowJoin')}</span>
|
||||
<span className="v">{ escrowStatus }</span>
|
||||
<span className="v">{ getEscrowStatusName(t, escrowStatus) }</span>
|
||||
</li>
|
||||
<li className="kv-row">
|
||||
<span className="k">{t('merchant.location')}</span>
|
||||
|
||||
@@ -1313,8 +1313,14 @@
|
||||
"businessAddress": "Business Address",
|
||||
"websiteUrl": "Website URL",
|
||||
"onlineRegistrationStatus": "Online Registration Status",
|
||||
"available": "Available",
|
||||
"suspended": "Suspended",
|
||||
"usageStatus": {
|
||||
"available": "Available",
|
||||
"suspended": "Suspended"
|
||||
},
|
||||
"escrowStatus": {
|
||||
"active": "Active",
|
||||
"inactive": "Inactive"
|
||||
},
|
||||
"status": "Status",
|
||||
"issueDate": "Issue Date",
|
||||
"contractStatus": "Contract Status",
|
||||
|
||||
@@ -1298,6 +1298,7 @@
|
||||
"infoNotice": "※ 가맹점 정보는 앱에서 수정할 수 없습니다.\nPC 가맹점 관리자에서 설정해 주세요.",
|
||||
"cardReviewStatus": "신용카드 심사현황",
|
||||
"escrowRegistrationStatus": "에스크로 가입현황",
|
||||
|
||||
"settlementAccount": "정산계좌",
|
||||
"bank": "은행",
|
||||
"accountNumber": "계좌번호",
|
||||
@@ -1314,8 +1315,14 @@
|
||||
"businessAddress": "사업장주소",
|
||||
"websiteUrl": "홈페이지 주소",
|
||||
"onlineRegistrationStatus": "온라인 등록현황",
|
||||
"available": "사용 가능",
|
||||
"suspended": "사용 중지",
|
||||
"usageStatus": {
|
||||
"available": "사용 가능",
|
||||
"suspended": "사용 중지"
|
||||
},
|
||||
"escrowStatus": {
|
||||
"active": "가입",
|
||||
"inactive": "미가입"
|
||||
},
|
||||
"status": "상태",
|
||||
"issueDate": "발급일자",
|
||||
"contractStatus": "계약완료 여부",
|
||||
|
||||
Reference in New Issue
Block a user