This commit is contained in:
focp212@naver.com
2025-10-15 17:13:04 +09:00
20 changed files with 1171 additions and 136 deletions

View File

@@ -127,6 +127,7 @@ export interface KeyInPaymentListItem {
export interface KeyInPaymentListProps {
additionalServiceCategory: AdditionalServiceCategory;
listItems: Record<string, Array<ListItemProps>>;
mid?: string;
}
export interface KeyInPaymentFilterProps extends FilterProps {

View File

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

View File

@@ -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>
</>
);
}

View File

@@ -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>
</>
);
}

View File

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