가맹점 정리

This commit is contained in:
focp212@naver.com
2025-10-01 11:06:34 +09:00
parent c36ecc60d5
commit 851545e81c
9 changed files with 62 additions and 62 deletions

View File

@@ -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>