Merge branch 'main' of https://gitea.bpsoft.co.kr/nicepayments/nice-app-web
This commit is contained in:
@@ -127,6 +127,7 @@ export interface KeyInPaymentListItem {
|
||||
export interface KeyInPaymentListProps {
|
||||
additionalServiceCategory: AdditionalServiceCategory;
|
||||
listItems: Record<string, Array<ListItemProps>>;
|
||||
mid?: string;
|
||||
}
|
||||
|
||||
export interface KeyInPaymentFilterProps extends FilterProps {
|
||||
|
||||
@@ -5,7 +5,8 @@ import { ListDateGroup } from '../list-date-group';
|
||||
|
||||
export const KeyInPaymentList = ({
|
||||
additionalServiceCategory,
|
||||
listItems
|
||||
listItems,
|
||||
mid
|
||||
}: KeyInPaymentListProps) => {
|
||||
const { navigate } = useNavigate();
|
||||
|
||||
@@ -25,7 +26,9 @@ export const KeyInPaymentList = ({
|
||||
};
|
||||
|
||||
const onClickToNavigate = () => {
|
||||
navigate(PATHS.additionalService.keyInPayment.request)
|
||||
navigate(PATHS.additionalService.keyInPayment.request, {
|
||||
state: { mid }
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
import { motion } from 'framer-motion';
|
||||
import { IMAGE_ROOT } from '@/shared/constants/common';
|
||||
import { BottomSheetMotionDuration, BottomSheetMotionVaiants } from "@/entities/common/model/constant";
|
||||
|
||||
|
||||
export interface ExtendedPeriodBottomSheetProps {
|
||||
bottomSheetOn: boolean,
|
||||
setBottomSheetOn: (bottomSheetOn: boolean) => void;
|
||||
extendPeriod: () => void;
|
||||
};
|
||||
|
||||
export const ExtendedPeriodBottomSheet = ({
|
||||
bottomSheetOn,
|
||||
setBottomSheetOn,
|
||||
extendPeriod
|
||||
}: ExtendedPeriodBottomSheetProps) => {
|
||||
const onClickToClose = () => {
|
||||
setBottomSheetOn(false);
|
||||
};
|
||||
|
||||
const onClickToResendSms = () => {
|
||||
if(extendPeriod) {
|
||||
extendPeriod();
|
||||
}
|
||||
onClickToClose();
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
{ (bottomSheetOn) &&
|
||||
<div className="bg-dim"></div>
|
||||
}
|
||||
<motion.div
|
||||
className="bottomsheet"
|
||||
initial="hidden"
|
||||
animate={ (bottomSheetOn)? 'visible': 'hidden' }
|
||||
variants={ BottomSheetMotionVaiants }
|
||||
transition={ BottomSheetMotionDuration }
|
||||
>
|
||||
<div className="bottomsheet-header">
|
||||
<div className="bottomsheet-title">
|
||||
<h2>기간 연장</h2>
|
||||
<button
|
||||
className="close-btn"
|
||||
type="button"
|
||||
>
|
||||
<img
|
||||
src={ IMAGE_ROOT + '/ico_close.svg' }
|
||||
alt="취소"
|
||||
onClick={ () => onClickToClose() }
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div className="bottomsheet-content">
|
||||
<div className="bottom-section">
|
||||
<p>유효기간 연장을 하시겠습니끼?</p>
|
||||
<p>개별 상태를 확인해주세요.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="bottomsheet-footer">
|
||||
<button
|
||||
className="btn-50 btn-blue flex-1"
|
||||
type="button"
|
||||
onClick={ () => onClickToResendSms() }
|
||||
>확인</button>
|
||||
</div>
|
||||
</motion.div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
import { motion } from 'framer-motion';
|
||||
import { IMAGE_ROOT } from '@/shared/constants/common';
|
||||
import { BottomSheetMotionDuration, BottomSheetMotionVaiants } from "@/entities/common/model/constant";
|
||||
|
||||
|
||||
export interface LinkBreakBottomSheetProps {
|
||||
bottomSheetOn: boolean,
|
||||
setBottomSheetOn: (bottomSheetOn: boolean) => void;
|
||||
linkBreak: () => void;
|
||||
};
|
||||
|
||||
export const LinkBreakBottomSheet = ({
|
||||
bottomSheetOn,
|
||||
setBottomSheetOn,
|
||||
linkBreak
|
||||
}: LinkBreakBottomSheetProps) => {
|
||||
const onClickToClose = () => {
|
||||
setBottomSheetOn(false);
|
||||
};
|
||||
|
||||
const onClickToLinkBreak = () => {
|
||||
if(linkBreak) {
|
||||
linkBreak();
|
||||
}
|
||||
onClickToClose();
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
{ (bottomSheetOn) &&
|
||||
<div className="bg-dim"></div>
|
||||
}
|
||||
<motion.div
|
||||
className="bottomsheet"
|
||||
initial="hidden"
|
||||
animate={ (bottomSheetOn)? 'visible': 'hidden' }
|
||||
variants={ BottomSheetMotionVaiants }
|
||||
transition={ BottomSheetMotionDuration }
|
||||
>
|
||||
<div className="bottomsheet-header">
|
||||
<div className="bottomsheet-title">
|
||||
<h2>링크중단</h2>
|
||||
<button
|
||||
className="close-btn"
|
||||
type="button"
|
||||
>
|
||||
<img
|
||||
src={ IMAGE_ROOT + '/ico_close.svg' }
|
||||
alt="취소"
|
||||
onClick={ () => onClickToClose() }
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div className="bottomsheet-content">
|
||||
<div className="bottom-section">
|
||||
<p>링크중단 요청 시</p>
|
||||
<p>결제불가 상태가 되며 원복 불가합니다.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="bottomsheet-footer">
|
||||
<button
|
||||
className="btn-50 btn-blue flex-1"
|
||||
type="button"
|
||||
onClick={ () => onClickToLinkBreak() }
|
||||
>확인</button>
|
||||
</div>
|
||||
</motion.div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -55,7 +55,7 @@ export const LinkPaymentHistoryWrap = () => {
|
||||
mid: mid,
|
||||
searchCl: searchType === LinkPaymentSearchType.ALL ? '' : searchType,
|
||||
searchValue: searchKeyword,
|
||||
paymentMethod: 'st', // 추후 변경 필요 빼야함
|
||||
paymentMethod: '',
|
||||
fromDate: startDate,
|
||||
toDate: endDate,
|
||||
paymentStatus: transactionStatus === LinkPaymentTransactionStatus.ALL ? '' : transactionStatus,
|
||||
@@ -92,7 +92,7 @@ export const LinkPaymentHistoryWrap = () => {
|
||||
mid: mid,
|
||||
searchCl: (searchType === LinkPaymentSearchType.ALL)? '': searchType,
|
||||
searchValue: searchKeyword,
|
||||
paymentMethod: 'st', // 추후 변경 필요 빼야함
|
||||
paymentMethod: '',
|
||||
fromDate: startDate,
|
||||
toDate: endDate,
|
||||
paymentStatus: (transactionStatus === LinkPaymentTransactionStatus.ALL)? '': transactionStatus,
|
||||
|
||||
Reference in New Issue
Block a user