|
|
|
@ -42,7 +42,7 @@ function Detail() {
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
function detailTextRender(text, confirm) {
|
|
|
|
|
function detailTextRender(_, confirm) {
|
|
|
|
|
const formattedText = confirm.PCI_ConfirmText;//.replace(/\;/g, '\n——————————————————————\n');
|
|
|
|
|
return (
|
|
|
|
|
<div className='whitespace-pre-line'>
|
|
|
|
@ -51,19 +51,21 @@ function Detail() {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function attachmentRender(text, confirm) {
|
|
|
|
|
function attachmentRender(_, confirm) {
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
{confirm.attachmentList.map(attch => {
|
|
|
|
|
return (
|
|
|
|
|
<Tag bordered={false} icon={<FileOutlined />}><a href={attch.file_url} target='_blank'>{attch.file_name}</a></Tag>
|
|
|
|
|
<Tag key={attch.file_name} bordered={false} icon={<FileOutlined />}>
|
|
|
|
|
<a href={attch.file_url} target='_blank' rel='noreferrer'>{attch.file_name}</a>
|
|
|
|
|
</Tag>
|
|
|
|
|
)}
|
|
|
|
|
)}
|
|
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function confirmRender(text, confirm) {
|
|
|
|
|
function confirmRender(_, confirm) {
|
|
|
|
|
return (
|
|
|
|
|
<Button type='link' onClick={() => showConfirmModal(confirm)}>{t('Confirm')}</Button>
|
|
|
|
|
);
|
|
|
|
@ -128,7 +130,7 @@ function Detail() {
|
|
|
|
|
.finally(() => {
|
|
|
|
|
setDataLoading(false);
|
|
|
|
|
});
|
|
|
|
|
}, [reservationId]);
|
|
|
|
|
}, [reservationId, getReservationDetail, notification]);
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|