가맹점 정보, 일부 상수 및 공용 변경
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import moment from 'moment';
|
||||
import { DetailArrow } from '../detail-arrow';
|
||||
import { SectionTitleArrow } from '@/entities/common/ui/section-title-arrow';
|
||||
import { InfoWrapKeys, DetailInfoProps } from '../../model/types';
|
||||
import { SlideDown } from 'react-slidedown';
|
||||
import 'react-slidedown/lib/slidedown.css';
|
||||
@@ -7,13 +7,13 @@ import 'react-slidedown/lib/slidedown.css';
|
||||
export const DetailInfoWrap = ({
|
||||
transactionCategory,
|
||||
detailInfo,
|
||||
show,
|
||||
onClickToShowInfo
|
||||
isOpen,
|
||||
onClickToOpenInfo
|
||||
}: DetailInfoProps) => {
|
||||
|
||||
const onClickToSetShowInfo = () => {
|
||||
if(!!onClickToShowInfo){
|
||||
onClickToShowInfo(InfoWrapKeys.Issue);
|
||||
const onClickToSetOpenInfo = () => {
|
||||
if(!!onClickToOpenInfo){
|
||||
onClickToOpenInfo(InfoWrapKeys.Issue);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -22,12 +22,12 @@ export const DetailInfoWrap = ({
|
||||
<div className="txn-section">
|
||||
<div
|
||||
className="section-title with-toggle"
|
||||
onClick={ () => onClickToSetShowInfo() }
|
||||
onClick={ () => onClickToSetOpenInfo() }
|
||||
>
|
||||
상세 정보 <DetailArrow show={ show }></DetailArrow>
|
||||
상세 정보 <SectionTitleArrow isOpen={ isOpen }></SectionTitleArrow>
|
||||
</div>
|
||||
<SlideDown className={'my-dropdown-slidedown'}>
|
||||
{ !!show &&
|
||||
{ !!isOpen &&
|
||||
<ul className="kv-list">
|
||||
<li className="kv-row">
|
||||
<span className="k">취소일자</span>
|
||||
|
||||
Reference in New Issue
Block a user