diff --git a/src/views/reservation/Detail.jsx b/src/views/reservation/Detail.jsx index e2cd7c2..e482676 100644 --- a/src/views/reservation/Detail.jsx +++ b/src/views/reservation/Detail.jsx @@ -42,7 +42,7 @@ function Detail() { }, ]; - function detailTextRender(text, confirm) { + function detailTextRender(_, confirm) { const formattedText = confirm.PCI_ConfirmText;//.replace(/\;/g, '\n——————————————————————\n'); return (
@@ -51,19 +51,21 @@ function Detail() { ); } - function attachmentRender(text, confirm) { + function attachmentRender(_, confirm) { return ( <> {confirm.attachmentList.map(attch => { return ( - }>{attch.file_name} + }> + {attch.file_name} + )} )} ); } - function confirmRender(text, confirm) { + function confirmRender(_, confirm) { return ( ); @@ -128,7 +130,7 @@ function Detail() { .finally(() => { setDataLoading(false); }); - }, [reservationId]); + }, [reservationId, getReservationDetail, notification]); return ( <> diff --git a/src/views/reservation/Newest.jsx b/src/views/reservation/Newest.jsx index c6e4279..349d40e 100644 --- a/src/views/reservation/Newest.jsx +++ b/src/views/reservation/Newest.jsx @@ -1,4 +1,4 @@ -import { NavLink, useLocation } from 'react-router-dom' +import { NavLink } from 'react-router-dom' import { useState, useEffect } from 'react' import { Row, Col, Space, Button, Table, Typography, Modal, App, Select } from 'antd' import dayjs from 'dayjs' @@ -90,7 +90,6 @@ function Newest() { ) } - const location = useLocation() const [isModalOpen, setIsModalOpen] = useState(false) const [dataLoading, setDataLoading] = useState(false) const [guideSelectOptions, setGuideSelectOptions] = useState([]) @@ -113,7 +112,7 @@ function Newest() { }) setGuideSelectOptions(selectOptions) }) - }, []) + }, [fetchAllGuideList]) const showCityGuideModal = (reservation) => { setDataLoading(true)