가맹점 정리
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useMerchantMidMutation } from '../api/use-merchant-mid-mutation';
|
||||
import { BusinessInfoWrap } from './info-wrap/business-info-wrap';
|
||||
import { ManagerInfoWrap } from './info-wrap/manager-info-wrap';
|
||||
import { AccountInfoWrap } from './info-wrap/account-info-wrap';
|
||||
import { BusinessSection } from './section/business-section';
|
||||
import { ManagerSection } from './section/manager-section';
|
||||
import { AccountSection } from './section/account-section';
|
||||
import {
|
||||
InfoWrapKeys,
|
||||
SectionKeys,
|
||||
MerchantMidParams,
|
||||
MerchantMidResponse
|
||||
} from '../model/types';
|
||||
@@ -16,7 +16,7 @@ export const InfoWrap = () => {
|
||||
|
||||
const [data, setData] = useState<MerchantMidResponse>();
|
||||
|
||||
const [openChild, setOpenChild] = useState<InfoWrapKeys | null>(null);
|
||||
const [openChild, setOpenChild] = useState<SectionKeys | null>(null);
|
||||
|
||||
const { mutateAsync: merchantMid } = useMerchantMidMutation();
|
||||
|
||||
@@ -57,43 +57,43 @@ export const InfoWrap = () => {
|
||||
</div>
|
||||
|
||||
<div className="merchant-info">
|
||||
<BusinessInfoWrap
|
||||
<BusinessSection
|
||||
data={ data }
|
||||
></BusinessInfoWrap>
|
||||
></BusinessSection>
|
||||
<div className="info-divider mb-16"></div>
|
||||
<ManagerInfoWrap
|
||||
type={ InfoWrapKeys.Merchant }
|
||||
<ManagerSection
|
||||
type={ SectionKeys.Merchant }
|
||||
title='계약 담당자'
|
||||
manager={ data?.merchantManager }
|
||||
managerTelephone={ data?.merchantManagerTelephone }
|
||||
managetEmail={ data?.merchantManagerEmail }
|
||||
openChild={ openChild }
|
||||
setOpenChild={ setOpenChild }
|
||||
></ManagerInfoWrap>
|
||||
></ManagerSection>
|
||||
<div className="info-divider mb-16"></div>
|
||||
<ManagerInfoWrap
|
||||
type={ InfoWrapKeys.Technical }
|
||||
<ManagerSection
|
||||
type={ SectionKeys.Technical }
|
||||
title='기술 담당자'
|
||||
manager={ data?.technicalManager }
|
||||
managerTelephone={ data?.technicalManagerTelephone }
|
||||
managetEmail={ data?.technicalManagerEmail }
|
||||
openChild={ openChild }
|
||||
setOpenChild={ setOpenChild }
|
||||
></ManagerInfoWrap>
|
||||
></ManagerSection>
|
||||
<div className="info-divider mb-16"></div>
|
||||
<ManagerInfoWrap
|
||||
type={ InfoWrapKeys.Settlement }
|
||||
<ManagerSection
|
||||
type={ SectionKeys.Settlement }
|
||||
title='정산 담당자'
|
||||
manager={ data?.settlementManager }
|
||||
managerTelephone={ data?.settlementManagerTelephone }
|
||||
managetEmail={ data?.settlementManagerEmail }
|
||||
openChild={ openChild }
|
||||
setOpenChild={ setOpenChild }
|
||||
></ManagerInfoWrap>
|
||||
></ManagerSection>
|
||||
<div className="info-divider mb-16"></div>
|
||||
<AccountInfoWrap
|
||||
<AccountSection
|
||||
data={ data }
|
||||
></AccountInfoWrap>
|
||||
></AccountSection>
|
||||
<div className="notice-bottom left-align">
|
||||
<p className="notice-tip">※ 가맹점 정보는 앱에서 수정할 수 없습니다.<br/>PC 가맹점 관리자에서 설정해 주세요.</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user