This commit is contained in:
Николай Полтщук 2023-07-13 03:42:24 +03:00
parent c308e0fd58
commit c6f9d4722a

View File

@ -70,7 +70,7 @@ export const ModalTiсket = ({
const [users, setUsers] = useState([]); const [users, setUsers] = useState([]);
const [timerStart, setTimerStart] = useState(false); const [timerStart, setTimerStart] = useState(false);
const [timerInfo, setTimerInfo] = useState({}); const [timerInfo, setTimerInfo] = useState({});
const [uploadedFile, setUploadedFile] = useState(null) const [uploadedFile, setUploadedFile] = useState(null);
const [currentTimerCount, setCurrentTimerCount] = useState({ const [currentTimerCount, setCurrentTimerCount] = useState({
hours: 0, hours: 0,
minute: 0, minute: 0,
@ -317,9 +317,9 @@ export const ModalTiсket = ({
headers: { ...getToken() }, headers: { ...getToken() },
}); });
const data = await res.json() const data = await res.json();
setUploadedFile(data) setUploadedFile(data);
} }
function startTimer() { function startTimer() {
@ -455,14 +455,15 @@ export const ModalTiсket = ({
)} )}
{/*<img src={taskImg} className="image-task"></img>*/} {/*<img src={taskImg} className="image-task"></img>*/}
</div> </div>
{uploadedFile && {uploadedFile && (
<div className='fileLoaded'> <div className="fileLoaded">
{uploadedFile.map((file) => { {uploadedFile.map((file) => {
return <img src={urlForLocal(file.url)} alt='img' key={file.id}/> return (
}) <img src={urlForLocal(file.url)} alt="img" key={file.id} />
} );
})}
</div> </div>
} )}
<div className="content__communication"> <div className="content__communication">
{/*<p className="tasks">*/} {/*<p className="tasks">*/}
{/* <button*/} {/* <button*/}