가맹점 정리
This commit is contained in:
@@ -44,7 +44,7 @@ export enum EscrowStatus {
|
|||||||
ACTIVE = 'ACTIVE',
|
ACTIVE = 'ACTIVE',
|
||||||
INACTIVE = 'INACTIVE'
|
INACTIVE = 'INACTIVE'
|
||||||
};
|
};
|
||||||
export enum InfoWrapKeys {
|
export enum SectionKeys {
|
||||||
Merchant = 'Merchant',
|
Merchant = 'Merchant',
|
||||||
Technical = 'Technical',
|
Technical = 'Technical',
|
||||||
Settlement = 'Settlement',
|
Settlement = 'Settlement',
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { useMerchantMidMutation } from '../api/use-merchant-mid-mutation';
|
import { useMerchantMidMutation } from '../api/use-merchant-mid-mutation';
|
||||||
import { BusinessInfoWrap } from './info-wrap/business-info-wrap';
|
import { BusinessSection } from './section/business-section';
|
||||||
import { ManagerInfoWrap } from './info-wrap/manager-info-wrap';
|
import { ManagerSection } from './section/manager-section';
|
||||||
import { AccountInfoWrap } from './info-wrap/account-info-wrap';
|
import { AccountSection } from './section/account-section';
|
||||||
import {
|
import {
|
||||||
InfoWrapKeys,
|
SectionKeys,
|
||||||
MerchantMidParams,
|
MerchantMidParams,
|
||||||
MerchantMidResponse
|
MerchantMidResponse
|
||||||
} from '../model/types';
|
} from '../model/types';
|
||||||
@@ -16,7 +16,7 @@ export const InfoWrap = () => {
|
|||||||
|
|
||||||
const [data, setData] = useState<MerchantMidResponse>();
|
const [data, setData] = useState<MerchantMidResponse>();
|
||||||
|
|
||||||
const [openChild, setOpenChild] = useState<InfoWrapKeys | null>(null);
|
const [openChild, setOpenChild] = useState<SectionKeys | null>(null);
|
||||||
|
|
||||||
const { mutateAsync: merchantMid } = useMerchantMidMutation();
|
const { mutateAsync: merchantMid } = useMerchantMidMutation();
|
||||||
|
|
||||||
@@ -57,43 +57,43 @@ export const InfoWrap = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="merchant-info">
|
<div className="merchant-info">
|
||||||
<BusinessInfoWrap
|
<BusinessSection
|
||||||
data={ data }
|
data={ data }
|
||||||
></BusinessInfoWrap>
|
></BusinessSection>
|
||||||
<div className="info-divider mb-16"></div>
|
<div className="info-divider mb-16"></div>
|
||||||
<ManagerInfoWrap
|
<ManagerSection
|
||||||
type={ InfoWrapKeys.Merchant }
|
type={ SectionKeys.Merchant }
|
||||||
title='계약 담당자'
|
title='계약 담당자'
|
||||||
manager={ data?.merchantManager }
|
manager={ data?.merchantManager }
|
||||||
managerTelephone={ data?.merchantManagerTelephone }
|
managerTelephone={ data?.merchantManagerTelephone }
|
||||||
managetEmail={ data?.merchantManagerEmail }
|
managetEmail={ data?.merchantManagerEmail }
|
||||||
openChild={ openChild }
|
openChild={ openChild }
|
||||||
setOpenChild={ setOpenChild }
|
setOpenChild={ setOpenChild }
|
||||||
></ManagerInfoWrap>
|
></ManagerSection>
|
||||||
<div className="info-divider mb-16"></div>
|
<div className="info-divider mb-16"></div>
|
||||||
<ManagerInfoWrap
|
<ManagerSection
|
||||||
type={ InfoWrapKeys.Technical }
|
type={ SectionKeys.Technical }
|
||||||
title='기술 담당자'
|
title='기술 담당자'
|
||||||
manager={ data?.technicalManager }
|
manager={ data?.technicalManager }
|
||||||
managerTelephone={ data?.technicalManagerTelephone }
|
managerTelephone={ data?.technicalManagerTelephone }
|
||||||
managetEmail={ data?.technicalManagerEmail }
|
managetEmail={ data?.technicalManagerEmail }
|
||||||
openChild={ openChild }
|
openChild={ openChild }
|
||||||
setOpenChild={ setOpenChild }
|
setOpenChild={ setOpenChild }
|
||||||
></ManagerInfoWrap>
|
></ManagerSection>
|
||||||
<div className="info-divider mb-16"></div>
|
<div className="info-divider mb-16"></div>
|
||||||
<ManagerInfoWrap
|
<ManagerSection
|
||||||
type={ InfoWrapKeys.Settlement }
|
type={ SectionKeys.Settlement }
|
||||||
title='정산 담당자'
|
title='정산 담당자'
|
||||||
manager={ data?.settlementManager }
|
manager={ data?.settlementManager }
|
||||||
managerTelephone={ data?.settlementManagerTelephone }
|
managerTelephone={ data?.settlementManagerTelephone }
|
||||||
managetEmail={ data?.settlementManagerEmail }
|
managetEmail={ data?.settlementManagerEmail }
|
||||||
openChild={ openChild }
|
openChild={ openChild }
|
||||||
setOpenChild={ setOpenChild }
|
setOpenChild={ setOpenChild }
|
||||||
></ManagerInfoWrap>
|
></ManagerSection>
|
||||||
<div className="info-divider mb-16"></div>
|
<div className="info-divider mb-16"></div>
|
||||||
<AccountInfoWrap
|
<AccountSection
|
||||||
data={ data }
|
data={ data }
|
||||||
></AccountInfoWrap>
|
></AccountSection>
|
||||||
<div className="notice-bottom left-align">
|
<div className="notice-bottom left-align">
|
||||||
<p className="notice-tip">※ 가맹점 정보는 앱에서 수정할 수 없습니다.<br/>PC 가맹점 관리자에서 설정해 주세요.</p>
|
<p className="notice-tip">※ 가맹점 정보는 앱에서 수정할 수 없습니다.<br/>PC 가맹점 관리자에서 설정해 주세요.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,15 +3,15 @@ import { useMerchantMidStatusMutation } from '../api/use-merchant-mid-status-mut
|
|||||||
import {
|
import {
|
||||||
CardApplications,
|
CardApplications,
|
||||||
Escrow,
|
Escrow,
|
||||||
InfoWrapKeys,
|
SectionKeys,
|
||||||
MerchantMidStatusParams,
|
MerchantMidStatusParams,
|
||||||
MerchantMidStatusResponse,
|
MerchantMidStatusResponse,
|
||||||
OfflineInfomation,
|
OfflineInfomation,
|
||||||
OnlineInfomation
|
OnlineInfomation
|
||||||
} from '../model/types';
|
} from '../model/types';
|
||||||
import { OnlineInfoWrap } from './info-wrap/online-info-wrap';
|
import { OnlineSection } from './section/online-section';
|
||||||
import { CardInfoWrap } from './info-wrap/card-info-wrap';
|
import { CardSection } from './section/card-section';
|
||||||
import { EscrowInfoWrap } from './info-wrap/escrow-info-wrap';
|
import { EscrowSection } from './section/escrow-section';
|
||||||
import { useStore } from '@/shared/model/store';
|
import { useStore } from '@/shared/model/store';
|
||||||
|
|
||||||
export const RegistrationStatusWrap = () => {
|
export const RegistrationStatusWrap = () => {
|
||||||
@@ -23,7 +23,7 @@ export const RegistrationStatusWrap = () => {
|
|||||||
const [cardApplications, setCardApplications] = useState<Array<CardApplications>>();
|
const [cardApplications, setCardApplications] = useState<Array<CardApplications>>();
|
||||||
const [escrow, setEscrow] = useState<Escrow>();
|
const [escrow, setEscrow] = useState<Escrow>();
|
||||||
|
|
||||||
const [openChild, setOpenChild] = useState<InfoWrapKeys | null>(null);
|
const [openChild, setOpenChild] = useState<SectionKeys | null>(null);
|
||||||
const { mutateAsync: merchantMidStatus } = useMerchantMidStatusMutation();
|
const { mutateAsync: merchantMidStatus } = useMerchantMidStatusMutation();
|
||||||
|
|
||||||
const callInfo = (selectedMid: string) => {
|
const callInfo = (selectedMid: string) => {
|
||||||
@@ -65,20 +65,20 @@ export const RegistrationStatusWrap = () => {
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div className="merchant-info">
|
<div className="merchant-info">
|
||||||
<OnlineInfoWrap
|
<OnlineSection
|
||||||
data={ onlineInfomation }
|
data={ onlineInfomation }
|
||||||
></OnlineInfoWrap>
|
></OnlineSection>
|
||||||
<div className="info-divider mb-16"></div>
|
<div className="info-divider mb-16"></div>
|
||||||
<CardInfoWrap
|
<CardSection
|
||||||
type={ InfoWrapKeys.Card }
|
type={ SectionKeys.Card }
|
||||||
title='신용카드 심사현황'
|
title='신용카드 심사현황'
|
||||||
cardApplications={ cardApplications }
|
cardApplications={ cardApplications }
|
||||||
openChild={ openChild }
|
openChild={ openChild }
|
||||||
setOpenChild={ setOpenChild }
|
setOpenChild={ setOpenChild }
|
||||||
></CardInfoWrap>
|
></CardSection>
|
||||||
<div className="info-divider mb-16"></div>
|
<div className="info-divider mb-16"></div>
|
||||||
<EscrowInfoWrap
|
<EscrowSection
|
||||||
type={ InfoWrapKeys.Escrow }
|
type={ SectionKeys.Escrow }
|
||||||
title='에스크로 가입현황'
|
title='에스크로 가입현황'
|
||||||
companyName={ escrow?.companyName }
|
companyName={ escrow?.companyName }
|
||||||
businessRegistrationNumber={ escrow?.businessRegistrationNumber }
|
businessRegistrationNumber={ escrow?.businessRegistrationNumber }
|
||||||
@@ -88,7 +88,7 @@ export const RegistrationStatusWrap = () => {
|
|||||||
serviceRegistrationNumber={ escrow?.serviceRegistrationNumber }
|
serviceRegistrationNumber={ escrow?.serviceRegistrationNumber }
|
||||||
openChild={ openChild }
|
openChild={ openChild }
|
||||||
setOpenChild={ setOpenChild }
|
setOpenChild={ setOpenChild }
|
||||||
></EscrowInfoWrap>
|
></EscrowSection>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { MerchantMidResponse } from '../../model/types';
|
import { MerchantMidResponse } from '../../model/types';
|
||||||
|
|
||||||
export interface AccountInfoWrapProps {
|
export interface AccountSectionProps {
|
||||||
data?: MerchantMidResponse
|
data?: MerchantMidResponse
|
||||||
};
|
};
|
||||||
|
|
||||||
export const AccountInfoWrap = ({
|
export const AccountSection = ({
|
||||||
data
|
data
|
||||||
}: AccountInfoWrapProps) => {
|
}: AccountSectionProps) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
import { MerchantMidResponse } from '../../model/types';
|
import { MerchantMidResponse } from '../../model/types';
|
||||||
|
|
||||||
export interface BusinessInfoWrapProps {
|
export interface BusinessSectionProps {
|
||||||
data?: MerchantMidResponse
|
data?: MerchantMidResponse
|
||||||
};
|
};
|
||||||
|
|
||||||
export const BusinessInfoWrap = ({
|
export const BusinessSection = ({
|
||||||
data
|
data
|
||||||
}: BusinessInfoWrapProps) => {
|
}: BusinessSectionProps) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -1,24 +1,24 @@
|
|||||||
import { SectionTitleArrow } from '@/entities/common/ui/section-title-arrow';
|
import { SectionTitleArrow } from '@/entities/common/ui/section-title-arrow';
|
||||||
import { CardApplications, Escrow, EscrowStatus, InfoWrapKeys, MerchantMidResponse } from '../../model/types';
|
import { CardApplications, SectionKeys } from '../../model/types';
|
||||||
import SlideDown from 'react-slidedown';
|
import SlideDown from 'react-slidedown';
|
||||||
import 'react-slidedown/lib/slidedown.css';
|
import 'react-slidedown/lib/slidedown.css';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
|
||||||
export interface CardInfoWrapProps {
|
export interface CardSectionProps {
|
||||||
type: InfoWrapKeys;
|
type: SectionKeys;
|
||||||
title?: string;
|
title?: string;
|
||||||
cardApplications?: Array<CardApplications>
|
cardApplications?: Array<CardApplications>
|
||||||
openChild: InfoWrapKeys | null;
|
openChild: SectionKeys | null;
|
||||||
setOpenChild: (openChild: InfoWrapKeys | null) => void;
|
setOpenChild: (openChild: SectionKeys | null) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const CardInfoWrap = ({
|
export const CardSection = ({
|
||||||
type,
|
type,
|
||||||
title,
|
title,
|
||||||
cardApplications,
|
cardApplications,
|
||||||
openChild,
|
openChild,
|
||||||
setOpenChild
|
setOpenChild
|
||||||
}: CardInfoWrapProps) => {
|
}: CardSectionProps) => {
|
||||||
|
|
||||||
const [isOpen, setIsOpen] = useState<boolean>(false);
|
const [isOpen, setIsOpen] = useState<boolean>(false);
|
||||||
|
|
||||||
@@ -1,17 +1,17 @@
|
|||||||
import { SectionTitleArrow } from '@/entities/common/ui/section-title-arrow';
|
import { SectionTitleArrow } from '@/entities/common/ui/section-title-arrow';
|
||||||
import { Escrow, EscrowStatus, InfoWrapKeys, MerchantMidResponse } from '../../model/types';
|
import { Escrow, SectionKeys } from '../../model/types';
|
||||||
import SlideDown from 'react-slidedown';
|
import SlideDown from 'react-slidedown';
|
||||||
import 'react-slidedown/lib/slidedown.css';
|
import 'react-slidedown/lib/slidedown.css';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
|
||||||
export interface EscrowInfoWrapProps extends Escrow {
|
export interface EscrowSectionProps extends Escrow {
|
||||||
type: InfoWrapKeys;
|
type: SectionKeys;
|
||||||
title?: string;
|
title?: string;
|
||||||
openChild: InfoWrapKeys | null;
|
openChild: SectionKeys | null;
|
||||||
setOpenChild: (openChild: InfoWrapKeys | null) => void;
|
setOpenChild: (openChild: SectionKeys | null) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const EscrowInfoWrap = ({
|
export const EscrowSection = ({
|
||||||
type,
|
type,
|
||||||
title,
|
title,
|
||||||
companyName,
|
companyName,
|
||||||
@@ -22,7 +22,7 @@ export const EscrowInfoWrap = ({
|
|||||||
serviceRegistrationNumber,
|
serviceRegistrationNumber,
|
||||||
openChild,
|
openChild,
|
||||||
setOpenChild
|
setOpenChild
|
||||||
}: EscrowInfoWrapProps) => {
|
}: EscrowSectionProps) => {
|
||||||
|
|
||||||
const [isOpen, setIsOpen] = useState<boolean>(false);
|
const [isOpen, setIsOpen] = useState<boolean>(false);
|
||||||
|
|
||||||
@@ -1,20 +1,20 @@
|
|||||||
import { SectionTitleArrow } from '@/entities/common/ui/section-title-arrow';
|
import { SectionTitleArrow } from '@/entities/common/ui/section-title-arrow';
|
||||||
import { InfoWrapKeys, MerchantMidResponse } from '../../model/types';
|
import { SectionKeys } from '../../model/types';
|
||||||
import SlideDown from 'react-slidedown';
|
import SlideDown from 'react-slidedown';
|
||||||
import 'react-slidedown/lib/slidedown.css';
|
import 'react-slidedown/lib/slidedown.css';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
|
||||||
export interface ManagerInfoWrapProps {
|
export interface ManagerSectionProps {
|
||||||
type: InfoWrapKeys;
|
type: SectionKeys;
|
||||||
title?: string;
|
title?: string;
|
||||||
manager?: string;
|
manager?: string;
|
||||||
managerTelephone?: string;
|
managerTelephone?: string;
|
||||||
managetEmail?: string;
|
managetEmail?: string;
|
||||||
openChild: InfoWrapKeys | null;
|
openChild: SectionKeys | null;
|
||||||
setOpenChild: (openChild: InfoWrapKeys | null) => void;
|
setOpenChild: (openChild: SectionKeys | null) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const ManagerInfoWrap = ({
|
export const ManagerSection = ({
|
||||||
type,
|
type,
|
||||||
title,
|
title,
|
||||||
manager,
|
manager,
|
||||||
@@ -22,7 +22,7 @@ export const ManagerInfoWrap = ({
|
|||||||
managetEmail,
|
managetEmail,
|
||||||
openChild,
|
openChild,
|
||||||
setOpenChild
|
setOpenChild
|
||||||
}: ManagerInfoWrapProps) => {
|
}: ManagerSectionProps) => {
|
||||||
|
|
||||||
const [isOpen, setIsOpen] = useState<boolean>(false);
|
const [isOpen, setIsOpen] = useState<boolean>(false);
|
||||||
|
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { OnlineInfomation } from '../../model/types';
|
import { OnlineInfomation } from '../../model/types';
|
||||||
|
|
||||||
export interface OnlineInfoWrapProps {
|
export interface OnlineSectionProps {
|
||||||
data?: OnlineInfomation
|
data?: OnlineInfomation
|
||||||
};
|
};
|
||||||
|
|
||||||
export const OnlineInfoWrap = ({
|
export const OnlineSection = ({
|
||||||
data
|
data
|
||||||
}: OnlineInfoWrapProps) => {
|
}: OnlineSectionProps) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
Reference in New Issue
Block a user