From c6f9d4722a8337e89721ec44839574856f988047 Mon Sep 17 00:00:00 2001 From: M1kola Date: Thu, 13 Jul 2023 03:42:24 +0300 Subject: [PATCH] file --- .../Modal/Tracker/ModalTicket/ModalTicket.jsx | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx b/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx index aa1c82e7..1be6bec8 100644 --- a/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx +++ b/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx @@ -70,7 +70,7 @@ export const ModalTiсket = ({ const [users, setUsers] = useState([]); const [timerStart, setTimerStart] = useState(false); const [timerInfo, setTimerInfo] = useState({}); - const [uploadedFile, setUploadedFile] = useState(null) + const [uploadedFile, setUploadedFile] = useState(null); const [currentTimerCount, setCurrentTimerCount] = useState({ hours: 0, minute: 0, @@ -317,9 +317,9 @@ export const ModalTiсket = ({ headers: { ...getToken() }, }); - const data = await res.json() + const data = await res.json(); - setUploadedFile(data) + setUploadedFile(data); } function startTimer() { @@ -455,14 +455,15 @@ export const ModalTiсket = ({ )} {/**/} - {uploadedFile && -
- {uploadedFile.map((file) => { - return img - }) - } -
- } + {uploadedFile && ( +
+ {uploadedFile.map((file) => { + return ( + img + ); + })} +
+ )}
{/*

*/} {/*