refactor: migrate to mantine v5

This commit is contained in:
Elias Schneider
2022-10-10 22:14:23 +02:00
parent 68ce8af197
commit db7edc4cd6
14 changed files with 1073 additions and 859 deletions

View File

@@ -19,10 +19,13 @@ const DownloadAllButton = ({ shareId }: { shareId: string }) => {
.catch(() => {});
const timer = setInterval(() => {
shareService.getMetaData(shareId).then((share) => {
setIsZipReady(share.isZipReady);
if (share.isZipReady) clearInterval(timer);
}).catch(() => {});
shareService
.getMetaData(shareId)
.then((share) => {
setIsZipReady(share.isZipReady);
if (share.isZipReady) clearInterval(timer);
})
.catch(() => {});
}, 5000);
return () => {
clearInterval(timer);
@@ -32,7 +35,6 @@ const DownloadAllButton = ({ shareId }: { shareId: string }) => {
if (!isZipReady)
return (
<Tooltip
wrapLines
position="bottom"
width={220}
withArrow