import moment from 'moment'; import { IMAGE_ROOT } from "@/shared/constants/common"; import { useState, useEffect } from "react"; import { LinkPaymentPendingSendFilter } from "./filter/link-payment-pending-send-filter"; import { useNavigate } from '@/shared/lib/hooks/use-navigate'; import { PATHS } from "@/shared/constants/paths"; import { LinkPaymentPendingList } from "./link-payment-pending-list"; import { LinkPaymentSearchType, LinkPaymentSendingStatus, LinkPaymentSendMethod } from "../../model/types"; export const LinkPaymentPendingSendWrap = () => { const { navigate } = useNavigate(); const [filterOn, setFilterOn] = useState(false); const [mid, setMid] = useState('nictest001m'); const [searchType, setSearchType] = useState(LinkPaymentSearchType.ALL) const [searchKeyword, setSearchKeyword] = useState(''); const [startDate, setStartDate] = useState(moment().format('YYYY-MM-DD')); const [endDate, setEndDate] = useState(moment().format('YYYY-MM-DD')); const [sendMethod, setSendMethod] = useState(LinkPaymentSendMethod.ALL); const [sendingStatus, setSendingStatus] = useState(LinkPaymentSendingStatus.ALL); const [listItems, setListItems] = useState({}); const onClickToOpenFilter = () => { setFilterOn(!filterOn); }; const onClickToNavigate = () => { navigate(PATHS.additionalService.linkPayment.request) } const callList = () => { setListItems({ '20250608': [ { transactionId: 'pending1', customerName: '김*환(7000)', status: '발송요청', channel: 'SMS', amount: 5254000 }, { transactionId: 'pending2', customerName: '김*환(7000)', status: '발송요청', channel: 'SMS', amount: 5254000 }, { transactionId: 'pending3', customerName: '김*환(7000)', status: '발송요청', channel: '이메일', amount: 5254000 }, { transactionId: 'pending4', customerName: '김*환(7000)', status: '발송취소', channel: 'SMS', amount: 5254000 }, { transactionId: 'pending5', customerName: '김*환(7000)', status: '발송취소', channel: 'SMS', amount: 5254000 } ] }); }; useEffect(() => { callList(); }, []); return ( <>
|
전체 성공 실패
) }