bottom sheet 체크
This commit is contained in:
@@ -83,6 +83,10 @@ export const TaxInvoiceDetail = ({
|
|||||||
setDetailOn(false);
|
setDetailOn(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const detailSubjectCondition = () => {
|
||||||
|
return detail.subject === 'PG 수수료' || detail.subject === 'PG수수료';
|
||||||
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if(!!detailOn && taxInvoiceNumber){
|
if(!!detailOn && taxInvoiceNumber){
|
||||||
callTaxInvoice();
|
callTaxInvoice();
|
||||||
@@ -110,7 +114,7 @@ export const TaxInvoiceDetail = ({
|
|||||||
></FullMenuClose>
|
></FullMenuClose>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="option-list pb-86">
|
<div className={ `option-list ${detailSubjectCondition()? 'pb-86': '' }` }>
|
||||||
<div className="txn-detail">
|
<div className="txn-detail">
|
||||||
<AmountSection
|
<AmountSection
|
||||||
taxInvoiceNumber={ taxInvoiceNumber }
|
taxInvoiceNumber={ taxInvoiceNumber }
|
||||||
@@ -131,12 +135,14 @@ export const TaxInvoiceDetail = ({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{ detailSubjectCondition() &&
|
||||||
<div className="apply-row">
|
<div className="apply-row">
|
||||||
<button
|
<button
|
||||||
className="btn-50 btn-blue flex-1"
|
className="btn-50 btn-blue flex-1"
|
||||||
onClick={ onClickToOpenBottomSheet }
|
onClick={ onClickToOpenBottomSheet }
|
||||||
>{t('vatReturn.viewDetails')}</button>
|
>{t('vatReturn.viewDetails')}</button>
|
||||||
</div>
|
</div>
|
||||||
|
}
|
||||||
</motion.div>
|
</motion.div>
|
||||||
{ !!bottomSheetOn &&
|
{ !!bottomSheetOn &&
|
||||||
<VatReturnListDetailBottomSheet
|
<VatReturnListDetailBottomSheet
|
||||||
|
|||||||
Reference in New Issue
Block a user